+ die(
+ '<h1>' . __( 'Configuration Error' ) . '</h1>' .
+ '<p>' . sprintf(
+ /* translators: %s: wp-config.php */
+ __( 'Your %s file has an empty database table prefix, which is not supported.' ),
+ '<code>wp-config.php</code>'
+ ) . '</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' ) ) {
+ display_header();
+ die(
+ '<h1>' . __( 'Configuration Error' ) . '</h1>' .
+ '<p>' . sprintf(
+ /* translators: %s: DO_NOT_UPGRADE_GLOBAL_TABLES */
+ __( 'The constant %s cannot be defined when installing WordPress.' ),
+ '<code>DO_NOT_UPGRADE_GLOBAL_TABLES</code>'
+ ) . '</p></body></html>'
+ );
+}
+
+/**
+ * @global string $wp_local_package
+ * @global WP_Locale $wp_locale
+ */
+$language = '';
+if ( ! empty( $_REQUEST['language'] ) ) {
+ $language = preg_replace( '/[^a-zA-Z_]/', '', $_REQUEST['language'] );
+} elseif ( isset( $GLOBALS['wp_local_package'] ) ) {
+ $language = $GLOBALS['wp_local_package'];