Changeset 10244
- Timestamp:
- 12/23/2008 12:51:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/wp-includes/category-template.php
r10193 r10244 398 398 if ( $show_option_all ) { 399 399 $show_option_all = apply_filters( 'list_cats', $show_option_all ); 400 $output .= "\t<option value='0'>$show_option_all</option>\n"; 400 $selected = ( '0' === strval($r['selected']) ) ? " selected='selected'" : ''; 401 $output .= "\t<option value='0'$selected>$show_option_all</option>\n"; 401 402 } 402 403 403 404 if ( $show_option_none ) { 404 405 $show_option_none = apply_filters( 'list_cats', $show_option_none ); 405 $output .= "\t<option value='-1'>$show_option_none</option>\n"; 406 $selected = ( '-1' === strval($r['selected']) ) ? " selected='selected'" : ''; 407 $output .= "\t<option value='-1'$selected>$show_option_none</option>\n"; 406 408 } 407 409
Note: See TracChangeset
for help on using the changeset viewer.