Ticket #21316: 21316.2.patch
File 21316.2.patch, 894 bytes (added by , 12 years ago) |
---|
-
wp-includes/load.php
102 102 */ 103 103 function wp_check_php_mysql_versions() { 104 104 global $required_php_version, $wp_version; 105 105 106 $php_version = phpversion(); 106 if ( version_compare( $required_php_version, $php_version, '>' ) ) { 107 if ( version_compare( '5.0.0', $php_version, '>' ) ) { 108 die( sprintf( 'Your server is running PHP version %1$s but WordPress %2$s requires at least %3$s.', $php_version, $wp_version, $required_php_version ) ); 109 } elseif ( version_compare( $required_php_version, $php_version, '>' ) ) { 107 110 wp_load_translations_early(); 108 111 wp_die( sprintf( __( 'Your server is running PHP version %1$s but WordPress %2$s requires at least %3$s.' ), $php_version, $wp_version, $required_php_version ) ); 109 112 }