WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/05/2019 12:51:33 PM (2 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/options-reading.php.

Props subrataemfluence.
Fixes #46834.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-reading.php

    r45674 r45752  
    6969
    7070else :
    71     if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) {
     71    if ( 'page' === get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) {
    7272        update_option( 'show_on_front', 'posts' );
    7373    }
     
    121121</label></li>
    122122</ul>
    123     <?php if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) == get_option( 'page_on_front' ) ) : ?>
     123    <?php if ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) === get_option( 'page_on_front' ) ) : ?>
    124124<div id="front-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div>
    125125<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.