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:
parent
86e5a051db
commit
6b2494ba10
|
@ -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 */
|
/* 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>.' ),
|
__( '<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' ),
|
self_admin_url( 'update-core.php' ),
|
||||||
esc_url( __( 'https://wordpress.org/support/upgrade-php/' ) )
|
esc_url( __( 'https://wordpress.org/support/update-php/' ) )
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: "Updating PHP" page URL */
|
/* translators: %s: "Updating PHP" page URL */
|
||||||
__( '<a href="%s">Learn more about updating PHP</a>.' ),
|
__( '<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 ) {
|
} elseif ( ! $compatible_wp ) {
|
||||||
|
@ -663,7 +663,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: "Updating PHP" page URL */
|
/* translators: %s: "Updating PHP" page URL */
|
||||||
__( '<a href="%s">Learn more about updating PHP</a>.' ),
|
__( '<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>';
|
echo '</p></div>';
|
||||||
|
|
|
@ -1636,7 +1636,7 @@ function wp_dashboard_php_nag() {
|
||||||
<?php
|
<?php
|
||||||
printf(
|
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>',
|
'<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' ),
|
__( 'Learn more about updating PHP' ),
|
||||||
/* translators: accessibility text */
|
/* translators: accessibility text */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
|
|
|
@ -765,7 +765,7 @@ if ( ! empty( $api->contributors ) ) {
|
||||||
printf(
|
printf(
|
||||||
/* translators: "Updating PHP" page URL */
|
/* 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>.' ),
|
__( '<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>';
|
echo '</p></div>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue