Ticket #17934: 17934.2.diff
File 17934.2.diff, 2.8 KB (added by , 13 years ago) |
---|
-
wp-load.php
41 41 else 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' ); 46 51 require_once( ABSPATH . '/wp-includes/functions.php' ); -
wp-includes/load.php
2 2 /** 3 3 * These functions are needed to load WordPress. 4 4 * 5 * This file must be parsable by PHP4. 6 * 5 7 * @package WordPress 6 8 */ 7 9 … … 95 97 * 96 98 * Dies if requirements are not met. 97 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. 102 * 98 103 * @access private 99 104 * @since 3.0.0 100 105 */ -
wp-settings.php
23 23 // Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE. 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 ); 28 31 @ini_set( 'magic_quotes_sybase', 0 ); … … 40 43 // Standardize $_SERVER variables across setups. 41 44 wp_fix_server_vars(); 42 45 43 // Check for the required PHP version and for the MySQL extension or a database drop-in.44 wp_check_php_mysql_versions();45 46 46 // Check if we have received a request due to missing favicon.ico 47 47 wp_favicon_request(); 48 48 -
wp-admin/setup-config.php
40 40 /**#@-*/ 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')) 49 51 wp_die('Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.');