From b095afe2db422c059056824be934d70a7663fd0a Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Tue, 9 Jun 2015 21:59:51 +0000 Subject: [PATCH] Remove Truthy check from DO_NOT_UPGRADE_GLOBAL_TABLES Some, but not all, of the checks for DO_NOT_UPGRADE_GLOBAL_TABLES just check if it is defined, so checking for truthiness could cause the issue to not be fully fixed. In the words of Colonel Jessep: You can't handle the truth! Introduced in [32714] Fixes #32011 git-svn-id: https://develop.svn.wordpress.org/trunk@32715 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/install.php b/src/wp-admin/install.php index 6858661662..5efebee602 100644 --- a/src/wp-admin/install.php +++ b/src/wp-admin/install.php @@ -194,7 +194,7 @@ if ( ! is_string( $wpdb->base_prefix ) || '' === $wpdb->base_prefix ) { } // Set error message if DO_NOT_UPGRADE_GLOBAL_TABLES isn't set as it will break install. -if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) && true === DO_NOT_UPGRADE_GLOBAL_TABLES ) { +if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) { display_header(); die( '

' . __( 'Configuration Error' ) . '

' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when installing WordPress.' ) . '

' ); }