Coding Standards: Use strict comparison in some wp-admin files.
Props pikamander2, mukesh27, SergeyBiryukov. Fixes #49239. Built from https://develop.svn.wordpress.org/trunk@47785 git-svn-id: http://core.svn.wordpress.org/trunk@47561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -45,7 +45,7 @@ if ( get_option( 'db_upgraded' ) ) {
|
||||
* @since 2.8.0
|
||||
*/
|
||||
do_action( 'after_db_upgrade' );
|
||||
} elseif ( get_option( 'db_version' ) != $wp_db_version && empty( $_POST ) ) {
|
||||
} elseif ( get_option( 'db_version' ) !== $wp_db_version && empty( $_POST ) ) {
|
||||
if ( ! is_multisite() ) {
|
||||
wp_redirect( admin_url( 'upgrade.php?_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) );
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user