Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category-template.php

    r33949 r33318  
    12081208        $output .= "\t<option class=\"level-$depth\" value=\"" . esc_attr( $category->{$value_field} ) . "\"";
    12091209
    1210         // Type-juggling causes false matches, so we force everything to a string.
    1211         if ( (string) $category->{$value_field} === (string) $args['selected'] )
     1210        if ( $category->{$value_field} == $args['selected'] )
    12121211            $output .= ' selected="selected"';
    12131212        $output .= '>';
Note: See TracChangeset for help on using the changeset viewer.