Changeset 46183
- Timestamp:
- 09/19/2019 12:01:03 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r46105 r46183 132 132 133 133 if ( version_compare( $required_php_version, $php_version, '>' ) ) { 134 wp_load_translations_early();135 136 134 $protocol = wp_get_server_protocol(); 137 135 header( sprintf( '%s 500 Internal Server Error', $protocol ), true, 500 ); 138 136 header( 'Content-Type: text/html; charset=utf-8' ); 139 /* translators: 1: Current PHP version number, 2: WordPress version number, 3: Minimum required PHP version number. */ 140 printf( __( 'Your server is running PHP version %1$s but WordPress %2$s requires at least %3$s.' ), $php_version, $wp_version, $required_php_version ); 137 printf( 'Your server is running PHP version %1$s but WordPress %2$s requires at least %3$s.', $php_version, $wp_version, $required_php_version ); 141 138 exit( 1 ); 142 139 } -
trunk/src/wp-settings.php
r46111 r46183 16 16 define( 'WPINC', 'wp-includes' ); 17 17 18 /* 19 * These can't be directly globalized in version.php. When updating, 20 * we're including version.php from another installation and don't want 21 * these values to be overridden if already set. 22 */ 23 global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package; 24 require( ABSPATH . WPINC . '/version.php' ); 25 require( ABSPATH . WPINC . '/load.php' ); 26 27 // Check for the required PHP version and for the MySQL extension or a database drop-in. 28 wp_check_php_mysql_versions(); 29 18 30 // Include files required for initialization. 19 require( ABSPATH . WPINC . '/load.php' );20 31 require( ABSPATH . WPINC . '/class-wp-paused-extensions-storage.php' ); 21 32 require( ABSPATH . WPINC . '/class-wp-fatal-error-handler.php' ); … … 29 40 require_once( ABSPATH . WPINC . '/plugin.php' ); 30 41 31 /*32 * These can't be directly globalized in version.php. When updating,33 * we're including version.php from another installation and don't want34 * these values to be overridden if already set.35 */36 global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package;37 require( ABSPATH . WPINC . '/version.php' );38 39 42 /** 40 43 * If not already configured, `$blog_id` will default to 1 in a single site … … 51 54 // Make sure we register the shutdown handler for fatal errors as soon as possible. 52 55 wp_register_fatal_error_handler(); 53 54 // Check for the required PHP version and for the MySQL extension or a database drop-in.55 wp_check_php_mysql_versions();56 56 57 57 // WordPress calculates offsets from UTC.
Note: See TracChangeset
for help on using the changeset viewer.