diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index 02461acf8c..d1282fa6e2 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -946,12 +946,17 @@ function update_core( $from, $to ) { $wp_filesystem->delete( $from, true ); } - /* translators: %s: Update PHP page URL */ - $php_update_message = '

' . sprintf( __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); + $php_update_message = ''; + if ( function_exists( 'wp_get_update_php_url' ) ) { + /* translators: %s: Update PHP page URL */ + $php_update_message = '

' . sprintf( __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); - $annotation = wp_get_update_php_annotation(); - if ( $annotation ) { - $php_update_message .= '

' . $annotation . ''; + if ( function_exists( 'wp_get_update_php_annotation' ) ) { + $annotation = wp_get_update_php_annotation(); + if ( $annotation ) { + $php_update_message .= '

' . $annotation . ''; + } + } } if ( ! $mysql_compat && ! $php_compat ) {