Ticket #48059: 48059.diff
File 48059.diff, 3.0 KB (added by , 5 years ago) |
---|
-
src/wp-includes/load.php
131 131 $php_version = phpversion(); 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 } 143 140 -
src/wp-settings.php
15 15 */ 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' ); 22 33 require( ABSPATH . WPINC . '/class-wp-recovery-mode-cookie-service.php' ); … … 28 39 require( ABSPATH . WPINC . '/default-constants.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 41 44 * configuration. In multisite, it will be overridden by default in ms-settings.php. … … 51 54 // Make sure we register the shutdown handler for fatal errors as soon as possible. 52 55 wp_register_fatal_error_handler(); 53 56 54 // Check for the required PHP version and for the MySQL extension or a database drop-in.55 wp_check_php_mysql_versions();56 57 57 // WordPress calculates offsets from UTC. 58 58 date_default_timezone_set( 'UTC' );