Make WordPress Core

Ticket #41471: 41471.diff

File 41471.diff, 1.2 KB (added by geminorum, 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 { 
    6161                }
    6262
    6363                $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'] )
    6565                        $output .= ' selected="selected"';
    6666                $output .= '>';
    6767