Ticket #41471: 41471.diff
File 41471.diff, 1.2 KB (added by , 7 years ago) |
---|
-
src/wp-includes/class-walker-page-dropdown.php
diff --git src/wp-includes/class-walker-page-dropdown.php src/wp-includes/class-walker-page-dropdown.php index 7d2b8523fb..d71b49cfe3 100644
class Walker_PageDropdown extends Walker { 61 61 } 62 62 63 63 $output .= "\t<option class=\"level-$depth\" value=\"" . esc_attr( $page->{$args['value_field']} ) . "\""; 64 if ( $page-> ID== $args['selected'] )64 if ( $page->{$args['value_field']} == $args['selected'] ) 65 65 $output .= ' selected="selected"'; 66 66 $output .= '>'; 67 67