WordPress.org

Make WordPress Core

Ticket #32011: 32011.patch

File 32011.patch, 871 bytes (added by Oxymoron, 5 years ago)

Added error message if DO_NOT_UPGRADE_GLOBAL_TABLES is defined & true

  • src/wp-admin/install.php

     
    193193        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>' );
    194194}
    195195
     196// Set error message if DO_NOT_UPGRADE_GLOBAL_TABLES isn't set as it will break install.
     197if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) && true === DO_NOT_UPGRADE_GLOBAL_TABLES ) {
     198        display_header();
     199        die( '<h1>' . __( 'Configuration Error' ) . '</h1><p>' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when creating a new site.' ) . '</p></body></html>' );
     200}
     201
    196202/**
    197203 * @global string    $wp_local_package
    198204 * @global WP_Locale $wp_locale