Changeset 18374
- Timestamp:
- 06/29/2011 04:46:46 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/setup-config.php
r17622 r18374 41 41 42 42 require_once(ABSPATH . WPINC . '/load.php'); 43 require_once(ABSPATH . WPINC . '/version.php'); 44 wp_check_php_mysql_versions(); 45 43 46 require_once(ABSPATH . WPINC . '/compat.php'); 44 47 require_once(ABSPATH . WPINC . '/functions.php'); 45 48 require_once(ABSPATH . WPINC . '/class-wp-error.php'); 46 require_once(ABSPATH . WPINC . '/version.php');47 49 48 50 if (!file_exists(ABSPATH . 'wp-config-sample.php')) … … 58 60 if (file_exists(ABSPATH . '../wp-config.php') && ! file_exists(ABSPATH . '../wp-settings.php')) 59 61 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>"); 60 61 if ( version_compare( $required_php_version, phpversion(), '>' ) )62 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 ) );63 64 if ( !extension_loaded('mysql') && !file_exists(ABSPATH . 'wp-content/db.php') )65 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*/ );66 62 67 63 if (isset($_GET['step'])) -
trunk/wp-includes/load.php
r18339 r18374 2 2 /** 3 3 * These functions are needed to load WordPress. 4 * 5 * This file must be parsable by PHP4. 4 6 * 5 7 * @package WordPress … … 95 97 * 96 98 * Dies if requirements are not met. 99 * 100 * This function must be able to work without a complete environment set up. In wp-load.php, for 101 * example, WP_CONTENT_DIR is defined and version.php is included before this function is called. 97 102 * 98 103 * @access private -
trunk/wp-load.php
r17645 r18374 42 42 $path = 'wp-admin/'; 43 43 44 require_once( ABSPATH . '/wp-includes/load.php' ); 45 require_once( ABSPATH . '/wp-includes/version.php' ); 46 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); 47 wp_check_php_mysql_versions(); 48 44 49 // Die with an error message 45 50 require_once( ABSPATH . '/wp-includes/class-wp-error.php' ); -
trunk/wp-settings.php
r18346 r18374 24 24 wp_initial_constants( ); 25 25 26 // Check for the required PHP version and for the MySQL extension or a database drop-in. 27 wp_check_php_mysql_versions(); 28 26 29 // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php. 27 30 set_magic_quotes_runtime( 0 ); … … 40 43 // Standardize $_SERVER variables across setups. 41 44 wp_fix_server_vars(); 42 43 // Check for the required PHP version and for the MySQL extension or a database drop-in.44 wp_check_php_mysql_versions();45 45 46 46 // Check if we have received a request due to missing favicon.ico
Note: See TracChangeset
for help on using the changeset viewer.