diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php
index b0b86166ad..57444787e6 100644
|
a
|
b
|
function update_core( $from, $to ) {
|
| 946 | 946 | $wp_filesystem->delete( $from, true ); |
| 947 | 947 | } |
| 948 | 948 | |
| | 949 | /* translators: %s: Update PHP page URL */ |
| | 950 | $php_update_message = '<br>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) ); |
| | 951 | |
| | 952 | $annotation = wp_get_update_php_annotation(); |
| | 953 | |
| | 954 | if ( $annotation ) { |
| | 955 | $php_update_message .= '<br><em>' . $annotation . '</em>'; |
| | 956 | } |
| | 957 | |
| 949 | 958 | if ( ! $mysql_compat && ! $php_compat ) { |
| 950 | | return new WP_Error( 'php_mysql_not_compatible', sprintf( __( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) ); |
| | 959 | return new WP_Error( 'php_mysql_not_compatible', sprintf( __( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) . $php_update_message ); |
| 951 | 960 | } elseif ( ! $php_compat ) { |
| 952 | | return new WP_Error( 'php_not_compatible', sprintf( __( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version ) ); |
| | 961 | return new WP_Error( 'php_not_compatible', sprintf( __( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version ) . $php_update_message ); |
| 953 | 962 | } elseif ( ! $mysql_compat ) { |
| 954 | 963 | return new WP_Error( 'mysql_not_compatible', sprintf( __( 'The update cannot be installed because WordPress %1$s requires MySQL version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_mysql_version, $mysql_version ) ); |
| 955 | 964 | } |
diff --git a/wp-admin/install.php b/wp-admin/install.php
index 4a38eab1cd..6c93a27732 100644
|
a
|
b
|
$version_url = sprintf(
|
| 243 | 243 | sanitize_title( $wp_version ) |
| 244 | 244 | ); |
| 245 | 245 | |
| | 246 | /* translators: %s: Update PHP page URL */ |
| | 247 | $php_update_message = '<br>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) ); |
| | 248 | |
| | 249 | $annotation = wp_get_update_php_annotation(); |
| | 250 | |
| | 251 | if ( $annotation ) { |
| | 252 | $php_update_message .= '<br><em>' . $annotation . '</em>'; |
| | 253 | } |
| | 254 | |
| 246 | 255 | if ( ! $mysql_compat && ! $php_compat ) { |
| 247 | 256 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number */ |
| 248 | | $compat = sprintf( __( 'You cannot install because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); |
| | 257 | $compat = sprintf( __( 'You cannot install because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) . $php_update_message; |
| 249 | 258 | } elseif ( ! $php_compat ) { |
| 250 | 259 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number */ |
| 251 | | $compat = sprintf( __( 'You cannot install because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_php_version, $php_version ); |
| | 260 | $compat = sprintf( __( 'You cannot install because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_php_version, $php_version ) . $php_update_message; |
| 252 | 261 | } elseif ( ! $mysql_compat ) { |
| 253 | 262 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number */ |
| 254 | 263 | $compat = sprintf( __( 'You cannot install because <a href="%1$s">WordPress %2$s</a> requires MySQL version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_mysql_version, $mysql_version ); |
diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index 570703e5d8..dd18d7b345 100644
|
a
|
b
|
function list_core_update( $update ) {
|
| 76 | 76 | sanitize_title( $update->current ) |
| 77 | 77 | ); |
| 78 | 78 | |
| | 79 | /* translators: %s: Update PHP page URL */ |
| | 80 | $php_update_message = '<br>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) ); |
| | 81 | |
| | 82 | $annotation = wp_get_update_php_annotation(); |
| | 83 | |
| | 84 | if ( $annotation ) { |
| | 85 | $php_update_message .= '<br><em>' . $annotation . '</em>'; |
| | 86 | } |
| | 87 | |
| 79 | 88 | if ( ! $mysql_compat && ! $php_compat ) { |
| 80 | 89 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number */ |
| 81 | | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version ); |
| | 90 | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version ) . $php_update_message; |
| 82 | 91 | } elseif ( ! $php_compat ) { |
| 83 | 92 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number */ |
| 84 | | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $update->current, $update->php_version, $php_version ); |
| | 93 | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $update->current, $update->php_version, $php_version ) . $php_update_message; |
| 85 | 94 | } elseif ( ! $mysql_compat ) { |
| 86 | 95 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number */ |
| 87 | 96 | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires MySQL version %3$s or higher. You are running version %4$s.' ), $version_url, $update->current, $update->mysql_version, $mysql_version ); |
diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php
index 330ef0fd9d..fc3e468325 100644
|
a
|
b
|
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) {
|
| 54 | 54 | $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ); |
| 55 | 55 | } |
| 56 | 56 | |
| | 57 | /* translators: %s: Update PHP page URL */ |
| | 58 | $php_update_message = '<br>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) ); |
| | 59 | |
| | 60 | $annotation = wp_get_update_php_annotation(); |
| | 61 | |
| | 62 | if ( $annotation ) { |
| | 63 | $php_update_message .= '<br><em>' . $annotation . '</em>'; |
| | 64 | } |
| | 65 | |
| 57 | 66 | @header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); |
| 58 | 67 | ?> |
| 59 | 68 | <!DOCTYPE html> |
| … |
… |
elseif ( ! $php_compat || ! $mysql_compat ) :
|
| 87 | 96 | |
| 88 | 97 | if ( ! $mysql_compat && ! $php_compat ) { |
| 89 | 98 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number */ |
| 90 | | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); |
| | 99 | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) . $php_update_message; |
| 91 | 100 | } elseif ( ! $php_compat ) { |
| 92 | 101 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number */ |
| 93 | | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_php_version, $php_version ); |
| | 102 | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_php_version, $php_version ) . $php_update_message; |
| 94 | 103 | } elseif ( ! $mysql_compat ) { |
| 95 | 104 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number */ |
| 96 | 105 | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires MySQL version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_mysql_version, $mysql_version ); |