Add error if a user attempts to install WordPress with DO_NOT_UPGRADE_GLOBAL_TABLES defined
The install process runs through migrations to global tables, therefore we cannot install WordPress with this constant defined. This error message prevents a false success screen from being seen. Fixes #32011. Props Oxymoron. git-svn-id: https://develop.svn.wordpress.org/trunk@32714 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c04185a1f2
commit
09340de73e
@ -193,6 +193,12 @@ if ( ! is_string( $wpdb->base_prefix ) || '' === $wpdb->base_prefix ) {
|
||||
die( '<h1>' . __( 'Configuration Error' ) . '</h1><p>' . __( 'Your <code>wp-config.php</code> file has an empty database table prefix, which is not supported.' ) . '</p></body></html>' );
|
||||
}
|
||||
|
||||
// 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 ) {
|
||||
display_header();
|
||||
die( '<h1>' . __( 'Configuration Error' ) . '</h1><p>' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when installing WordPress.' ) . '</p></body></html>' );
|
||||
}
|
||||
|
||||
/**
|
||||
* @global string $wp_local_package
|
||||
* @global WP_Locale $wp_locale
|
||||
|
Loading…
Reference in New Issue
Block a user