Coding Standards: Use strict comparison in `wp-includes/class-walker-page-dropdown.php`.
Follow-up to [3704], [16100]. Props aristath, poena, afercia, SergeyBiryukov. See #57839. Built from https://develop.svn.wordpress.org/trunk@55905 git-svn-id: http://core.svn.wordpress.org/trunk@55417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
39c2cef0c9
commit
9c217ce1e5
|
@ -69,7 +69,7 @@ class Walker_PageDropdown extends Walker {
|
||||||
}
|
}
|
||||||
|
|
||||||
$output .= "\t<option class=\"level-$depth\" value=\"" . esc_attr( $page->{$args['value_field']} ) . '"';
|
$output .= "\t<option class=\"level-$depth\" value=\"" . esc_attr( $page->{$args['value_field']} ) . '"';
|
||||||
if ( $page->ID == $args['selected'] ) {
|
if ( $page->ID === (int) $args['selected'] ) {
|
||||||
$output .= ' selected="selected"';
|
$output .= ' selected="selected"';
|
||||||
}
|
}
|
||||||
$output .= '>';
|
$output .= '>';
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.3-alpha-55904';
|
$wp_version = '6.3-alpha-55905';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue