wp/wp-includes/class-walker-category-dropdown.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    57 	 * @param int     $current_object_id Optional. ID of the current category. Default 0.
    57 	 * @param int     $current_object_id Optional. ID of the current category. Default 0.
    58 	 */
    58 	 */
    59 	public function start_el( &$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0 ) {
    59 	public function start_el( &$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0 ) {
    60 		// Restores the more descriptive, specific name for use within this method.
    60 		// Restores the more descriptive, specific name for use within this method.
    61 		$category = $data_object;
    61 		$category = $data_object;
    62 		$pad      = str_repeat( ' ', $depth * 3 );
    62 
       
    63 		$pad = str_repeat( ' ', $depth * 3 );
    63 
    64 
    64 		/** This filter is documented in wp-includes/category-template.php */
    65 		/** This filter is documented in wp-includes/category-template.php */
    65 		$cat_name = apply_filters( 'list_cats', $category->name, $category );
    66 		$cat_name = apply_filters( 'list_cats', $category->name, $category );
    66 
    67 
    67 		if ( isset( $args['value_field'] ) && isset( $category->{$args['value_field']} ) ) {
    68 		if ( isset( $args['value_field'] ) && isset( $category->{$args['value_field']} ) ) {