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.

git-svn-id: https://develop.svn.wordpress.org/trunk@55905 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2023-06-11 09:25:43 +00:00
parent 305816b232
commit c5101f1101

View File

@@ -69,7 +69,7 @@ class Walker_PageDropdown extends Walker {
}
$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 .= '>';