Changeset 41221 for trunk/src/wp-includes/category-template.php
- Timestamp:
- 08/03/2017 04:12:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r41033 r41221 387 387 * @see wp_dropdown_categories() 388 388 * 389 * @param string $element Taxonomy element to list. 389 * @param string $element Category name. 390 * @param WP_Term|null $category The category object, or null if there's no corresponding category. 390 391 */ 391 $show_option_none = apply_filters( 'list_cats', $r['show_option_none'] );392 $show_option_none = apply_filters( 'list_cats', $r['show_option_none'], null ); 392 393 $output .= "\t<option value='" . esc_attr( $option_none_value ) . "' selected='selected'>$show_option_none</option>\n"; 393 394 } … … 398 399 399 400 /** This filter is documented in wp-includes/category-template.php */ 400 $show_option_all = apply_filters( 'list_cats', $r['show_option_all'] );401 $show_option_all = apply_filters( 'list_cats', $r['show_option_all'], null ); 401 402 $selected = ( '0' === strval($r['selected']) ) ? " selected='selected'" : ''; 402 403 $output .= "\t<option value='0'$selected>$show_option_all</option>\n"; … … 406 407 407 408 /** This filter is documented in wp-includes/category-template.php */ 408 $show_option_none = apply_filters( 'list_cats', $r['show_option_none'] );409 $show_option_none = apply_filters( 'list_cats', $r['show_option_none'], null ); 409 410 $selected = selected( $option_none_value, $r['selected'], false ); 410 411 $output .= "\t<option value='" . esc_attr( $option_none_value ) . "'$selected>$show_option_none</option>\n";
Note: See TracChangeset
for help on using the changeset viewer.