WordPress.org

Make WordPress Core

Changeset 12238


Ignore:
Timestamp:
11/20/09 04:11:01 (6 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/setup-config.php

    r12145 r12238  
    5151if (file_exists(ABSPATH . '../wp-config.php') && ! file_exists(ABSPATH . '../wp-settings.php')) 
    5252    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>"); 
     53 
     54if ( version_compare( '4.3', phpversion(), '>' ) ) 
     55    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() ) ); 
     56 
     57if ( !extension_loaded('mysql') && !file_exists(ABSPATH . 'wp-content/db.php') ) 
     58    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*/ ); 
    5359 
    5460if (isset($_GET['step'])) 
Note: See TracChangeset for help on using the changeset viewer.