Changeset 33681 for trunk/src/wp-includes/category-template.php
- Timestamp:
- 08/21/2015 01:10:34 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r33318 r33681 1208 1208 $output .= "\t<option class=\"level-$depth\" value=\"" . esc_attr( $category->{$value_field} ) . "\""; 1209 1209 1210 if ( $category->{$value_field} == $args['selected'] ) 1210 // Type-juggling causes false matches, so we force everything to a string. 1211 if ( (string) $category->{$value_field} === (string) $args['selected'] ) 1211 1212 $output .= ' selected="selected"'; 1212 1213 $output .= '>';
Note: See TracChangeset
for help on using the changeset viewer.