diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 5ea85f3137..73181282e4 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -1609,9 +1609,9 @@ function wp_check_browser_version() { } /** - * Displays the PHP upgrade nag. + * Displays the PHP update nag. * - * @since 5.0.0 + * @since 5.1.0 */ function wp_dashboard_php_nag() { $response = wp_check_php_version(); @@ -1626,6 +1626,9 @@ function wp_dashboard_php_nag() { $msg = __( 'WordPress has detected that your site is running on an outdated version of PHP.' ); } + $update_url = wp_get_update_php_url(); + $default_url = wp_get_default_update_php_url(); + ?>

@@ -1634,22 +1637,36 @@ function wp_dashboard_php_nag() {

%2$s %3$s', - esc_url( _x( 'https://wordpress.org/support/update-php/', 'localized PHP upgrade information page' ) ), - __( 'Learn more about updating PHP' ), - /* translators: accessibility text */ - __( '(opens in a new tab)' ) - ); + printf( + '%2$s %3$s', + esc_url( $update_url ), + __( 'Learn more about updating PHP' ), + /* translators: accessibility text */ + __( '(opens in a new tab)' ) + ); ?>

+

+ see the official WordPress documentation.' ), + esc_url( $default_url ) + ); + ?> +

+