Make WordPress Core

Changeset 32715


Ignore:
Timestamp:
06/09/2015 09:59:51 PM (9 years ago)
Author:
jorbin
Message:

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

File:
1 edited

Legend:

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

    r32714 r32715  
    195195
    196196// Set error message if DO_NOT_UPGRADE_GLOBAL_TABLES isn't set as it will break install.
    197 if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) && true === DO_NOT_UPGRADE_GLOBAL_TABLES ) {
     197if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
    198198    display_header();
    199199    die( '<h1>' . __( 'Configuration Error' ) . '</h1><p>' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when installing WordPress.' ) . '</p></body></html>' );
Note: See TracChangeset for help on using the changeset viewer.