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. git-svn-id: https://develop.svn.wordpress.org/trunk@44420 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
32ec9382a9
commit
6d8e3c5864
|
@ -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>';
|
||||
|
|
|
@ -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)' )
|
||||
|
|
|
@ -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>';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue