Make WordPress Core


Ignore:
Timestamp:
08/20/2023 12:08:49 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/includes/meta-boxes.php.

Follow-up to [38], [647], [2890], [3570], [11815], [11816], [31550], [52620].

Props aristath, poena, afercia, SergeyBiryukov.
See #58831.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r56174 r56420  
    10341034        endif;  // End hierarchical check.
    10351035
    1036         if ( count( get_page_templates( $post ) ) > 0 && get_option( 'page_for_posts' ) != $post->ID ) :
     1036        if ( count( get_page_templates( $post ) ) > 0 && (int) get_option( 'page_for_posts' ) !== $post->ID ) :
    10371037                $template = ! empty( $post->page_template ) ? $post->page_template : false;
    10381038                ?>
    … …  
    14971497                for ( $rating = 0; $rating <= 10; $rating++ ) {
    14981498                        echo '<option value="' . $rating . '"';
    1499                         if ( isset( $link->link_rating ) && $link->link_rating == $rating ) {
     1499                        if ( isset( $link->link_rating ) && $link->link_rating === $rating ) {
    15001500                                echo ' selected="selected"';
    15011501                        }
Note: See TracChangeset for help on using the changeset viewer.