Changes from trunk/src/wp-includes/category-template.php at r33318 to branches/4.3/src/wp-includes/category-template.php at r33949
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3/src/wp-includes/category-template.php
r33318 r33949 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.