Skip to content
Permalink
Browse files

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

…php`.

Props subrataemfluence.
Fixes #46834.

git-svn-id: https://develop.svn.wordpress.org/trunk@45752 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Aug 5, 2019
1 parent c68927e commit 7b11f12d96e50b4b0bf1cb8ec9c22424e22cb30d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/wp-admin/options-reading.php
@@ -68,7 +68,7 @@
endif;
else :
if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) {
if ( 'page' === get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) {
update_option( 'show_on_front', 'posts' );
}
?>
@@ -120,7 +120,7 @@
?>
</label></li>
</ul>
<?php if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) == get_option( 'page_on_front' ) ) : ?>
<?php if ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) === get_option( 'page_on_front' ) ) : ?>
<div id="front-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div>
<?php endif; ?>
</fieldset></td>

0 comments on commit 7b11f12

Please sign in to comment.
You can’t perform that action at this time.