WordPress.org

Make WordPress Core

Ticket #17934: 17934.2.diff

File 17934.2.diff, 2.8 KB (added by nacin, 7 years ago)
  • wp-load.php

     
    4141        else
    4242                $path = 'wp-admin/';
    4343
     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
    4449        // Die with an error message
    4550        require_once( ABSPATH . '/wp-includes/class-wp-error.php' );
    4651        require_once( ABSPATH . '/wp-includes/functions.php' );
  • wp-includes/load.php

     
    22/**
    33 * These functions are needed to load WordPress.
    44 *
     5 * This file must be parsable by PHP4.
     6 *
    57 * @package WordPress
    68 */
    79
     
    9597 *
    9698 * Dies if requirements are not met.
    9799 *
     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 *
    98103 * @access private
    99104 * @since 3.0.0
    100105 */
  • wp-settings.php

     
    2323// Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE.
    2424wp_initial_constants( );
    2525
     26// Check for the required PHP version and for the MySQL extension or a database drop-in.
     27wp_check_php_mysql_versions();
     28
    2629// Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
    2730set_magic_quotes_runtime( 0 );
    2831@ini_set( 'magic_quotes_sybase', 0 );
     
    4043// Standardize $_SERVER variables across setups.
    4144wp_fix_server_vars();
    4245
    43 // Check for the required PHP version and for the MySQL extension or a database drop-in.
    44 wp_check_php_mysql_versions();
    45 
    4646// Check if we have received a request due to missing favicon.ico
    4747wp_favicon_request();
    4848
  • wp-admin/setup-config.php

     
    4040/**#@-*/
    4141
    4242require_once(ABSPATH . WPINC . '/load.php');
     43require_once(ABSPATH . WPINC . '/version.php');
     44wp_check_php_mysql_versions();
     45
    4346require_once(ABSPATH . WPINC . '/compat.php');
    4447require_once(ABSPATH . WPINC . '/functions.php');
    4548require_once(ABSPATH . WPINC . '/class-wp-error.php');
    46 require_once(ABSPATH . WPINC . '/version.php');
    4749
    4850if (!file_exists(ABSPATH . 'wp-config-sample.php'))
    4951        wp_die('Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.');