Show errors when minimum requirements are not met when installing, props dd32 Denis-de-Bernardy, fixes #9474

git-svn-id: https://develop.svn.wordpress.org/trunk@12238 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-11-20 04:11:01 +00:00
parent 82a2f2a426
commit ee858aaa6c
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ 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( '4.3', phpversion(), '>' ) )
wp_die( sprintf( /*WP_I18N_OLD_PHP*/'Your server is running PHP version %s but WordPress requires at least 4.3.'/*/WP_I18N_OLD_PHP*/, phpversion() ) );
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