Make WordPress Core


Ignore:
Timestamp:
06/11/2023 09:25:43 AM (14 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-walker-page-dropdown.php

    r53325 r55905  
    7070
    7171        $output .= "\t<option class=\"level-$depth\" value=\"" . esc_attr( $page->{$args['value_field']} ) . '"';
    72         if ( $page->ID == $args['selected'] ) {
     72        if ( $page->ID === (int) $args['selected'] ) {
    7373            $output .= ' selected="selected"';
    7474        }
Note: See TracChangeset for help on using the changeset viewer.