Plugins: Use newer "Updating PHP" page URL in the notice displayed when a plugin requires a higher PHP version.

Props afragen.
Fixes #43986. See #45686.
Built from https://develop.svn.wordpress.org/trunk@44420


git-svn-id: http://core.svn.wordpress.org/trunk@44250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-01-07 15:35:49 +00:00
parent 86e5a051db
commit 6b2494ba10
4 changed files with 6 additions and 6 deletions

View File

@ -640,13 +640,13 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
/* translators: 1: "Update WordPress" screen URL, 2: "Updating PHP" page URL */
__( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ),
self_admin_url( 'update-core.php' ),
esc_url( __( 'https://wordpress.org/support/upgrade-php/' ) )
esc_url( __( 'https://wordpress.org/support/update-php/' ) )
);
} else {
printf(
/* translators: %s: "Updating PHP" page URL */
__( '<a href="%s">Learn more about updating PHP</a>.' ),
esc_url( __( 'https://wordpress.org/support/upgrade-php/' ) )
esc_url( __( 'https://wordpress.org/support/update-php/' ) )
);
}
} elseif ( ! $compatible_wp ) {
@ -663,7 +663,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
printf(
/* translators: %s: "Updating PHP" page URL */
__( '<a href="%s">Learn more about updating PHP</a>.' ),
esc_url( __( 'https://wordpress.org/support/upgrade-php/' ) )
esc_url( __( 'https://wordpress.org/support/update-php/' ) )
);
}
echo '</p></div>';

View File

@ -1636,7 +1636,7 @@ function wp_dashboard_php_nag() {
<?php
printf(
'<a class="button button-primary" href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
esc_url( _x( 'https://wordpress.org/support/upgrade-php/', 'localized PHP upgrade information page' ) ),
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)' )

View File

@ -765,7 +765,7 @@ if ( ! empty( $api->contributors ) ) {
printf(
/* translators: "Updating PHP" page URL */
__( '<strong>Error:</strong> This plugin <strong>requires a newer version of PHP</strong>, so unfortunately you cannot install it. <a href="%s" target="_blank">Click here to learn more about updating PHP</a>.' ),
esc_url( __( 'https://wordpress.org/support/upgrade-php/' ) )
esc_url( __( 'https://wordpress.org/support/update-php/' ) )
);
echo '</p></div>';
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.1-alpha-44418';
$wp_version = '5.1-alpha-44420';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.