mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
wp_check_php_mysql_versions() during setup and install. see #17934.
git-svn-id: https://develop.svn.wordpress.org/trunk@18374 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -40,10 +40,12 @@ define('WP_DEBUG', false);
|
||||
/**#@-*/
|
||||
|
||||
require_once(ABSPATH . WPINC . '/load.php');
|
||||
require_once(ABSPATH . WPINC . '/version.php');
|
||||
wp_check_php_mysql_versions();
|
||||
|
||||
require_once(ABSPATH . WPINC . '/compat.php');
|
||||
require_once(ABSPATH . WPINC . '/functions.php');
|
||||
require_once(ABSPATH . WPINC . '/class-wp-error.php');
|
||||
require_once(ABSPATH . WPINC . '/version.php');
|
||||
|
||||
if (!file_exists(ABSPATH . 'wp-config-sample.php'))
|
||||
wp_die('Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.');
|
||||
@@ -58,12 +60,6 @@ if (file_exists(ABSPATH . 'wp-config.php'))
|
||||
if (file_exists(ABSPATH . '../wp-config.php') && ! file_exists(ABSPATH . '../wp-settings.php'))
|
||||
wp_die("<p>The file 'wp-config.php' already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='install.php'>installing now</a>.</p>");
|
||||
|
||||
if ( version_compare( $required_php_version, phpversion(), '>' ) )
|
||||
wp_die( sprintf( /*WP_I18N_OLD_PHP*/'Your server is running PHP version %1$s but WordPress requires at least %2$s.'/*/WP_I18N_OLD_PHP*/, phpversion(), $required_php_version ) );
|
||||
|
||||
if ( !extension_loaded('mysql') && !file_exists(ABSPATH . 'wp-content/db.php') )
|
||||
wp_die( /*WP_I18N_OLD_MYSQL*/'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.'/*/WP_I18N_OLD_MYSQL*/ );
|
||||
|
||||
if (isset($_GET['step']))
|
||||
$step = $_GET['step'];
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user