diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php
index 02461acf8c..d1282fa6e2 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 = '</p><p>' . 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 | | if ( $annotation ) { |
954 | | $php_update_message .= '</p><p><em>' . $annotation . '</em>'; |
| 949 | $php_update_message = ''; |
| 950 | if ( function_exists( 'wp_get_update_php_url' ) ) { |
| 951 | /* translators: %s: Update PHP page URL */ |
| 952 | $php_update_message = '</p><p>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) ); |
| 953 | |
| 954 | if ( function_exists( 'wp_get_update_php_annotation' ) ) { |
| 955 | $annotation = wp_get_update_php_annotation(); |
| 956 | if ( $annotation ) { |
| 957 | $php_update_message .= '</p><p><em>' . $annotation . '</em>'; |
| 958 | } |
| 959 | } |
955 | 960 | } |
956 | 961 | |
957 | 962 | if ( ! $mysql_compat && ! $php_compat ) { |