wp/wp-admin/includes/class-walker-category-checklist.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    60 	 *
    60 	 *
    61 	 * @see Walker::start_el()
    61 	 * @see Walker::start_el()
    62 	 *
    62 	 *
    63 	 * @since 2.5.1
    63 	 * @since 2.5.1
    64 	 *
    64 	 *
    65 	 * @param string $output   Used to append additional content (passed by reference).
    65 	 * @param string  $output   Used to append additional content (passed by reference).
    66 	 * @param object $category The current term object.
    66 	 * @param WP_Term $category The current term object.
    67 	 * @param int    $depth    Depth of the term in reference to parents. Default 0.
    67 	 * @param int     $depth    Depth of the term in reference to parents. Default 0.
    68 	 * @param array  $args     An array of arguments. @see wp_terms_checklist()
    68 	 * @param array   $args     An array of arguments. @see wp_terms_checklist()
    69 	 * @param int    $id       ID of the current term.
    69 	 * @param int     $id       ID of the current term.
    70 	 */
    70 	 */
    71 	public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
    71 	public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
    72 		if ( empty( $args['taxonomy'] ) ) {
    72 		if ( empty( $args['taxonomy'] ) ) {
    73 			$taxonomy = 'category';
    73 			$taxonomy = 'category';
    74 		} else {
    74 		} else {
   119 	 *
   119 	 *
   120 	 * @see Walker::end_el()
   120 	 * @see Walker::end_el()
   121 	 *
   121 	 *
   122 	 * @since 2.5.1
   122 	 * @since 2.5.1
   123 	 *
   123 	 *
   124 	 * @param string $output   Used to append additional content (passed by reference).
   124 	 * @param string  $output   Used to append additional content (passed by reference).
   125 	 * @param object $category The current term object.
   125 	 * @param WP_Term $category The current term object.
   126 	 * @param int    $depth    Depth of the term in reference to parents. Default 0.
   126 	 * @param int     $depth    Depth of the term in reference to parents. Default 0.
   127 	 * @param array  $args     An array of arguments. @see wp_terms_checklist()
   127 	 * @param array   $args     An array of arguments. @see wp_terms_checklist()
   128 	 */
   128 	 */
   129 	public function end_el( &$output, $category, $depth = 0, $args = array() ) {
   129 	public function end_el( &$output, $category, $depth = 0, $args = array() ) {
   130 		$output .= "</li>\n";
   130 		$output .= "</li>\n";
   131 	}
   131 	}
   132 }
   132 }