Coding Standards: Use strict comparison in `wp-admin/options-reading.php`.
Props subrataemfluence. Fixes #46834. Built from https://develop.svn.wordpress.org/trunk@45752 git-svn-id: http://core.svn.wordpress.org/trunk@45563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ad9d8c7d58
commit
2ac34c799b
|
@ -68,7 +68,7 @@ if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', '
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
else :
|
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' );
|
update_option( 'show_on_front', 'posts' );
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -120,7 +120,7 @@ else :
|
||||||
?>
|
?>
|
||||||
</label></li>
|
</label></li>
|
||||||
</ul>
|
</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>
|
<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; ?>
|
<?php endif; ?>
|
||||||
</fieldset></td>
|
</fieldset></td>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-45751';
|
$wp_version = '5.3-alpha-45752';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue