Coding standards: Properly escape URLs returned by `self_admin_url()` calls.

This address some other echoed instances missed by [53839].

Fixes #56329.

Built from https://develop.svn.wordpress.org/trunk@53840


git-svn-id: http://core.svn.wordpress.org/trunk@53399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-08-05 06:12:10 +00:00
parent b79e2df684
commit 233089c138
3 changed files with 5 additions and 5 deletions

View File

@ -827,7 +827,7 @@ function install_plugin_information() {
printf(
/* translators: %s: URL to WordPress Updates screen. */
' ' . __( '<a href="%s" target="_parent">Click here to update WordPress</a>.' ),
self_admin_url( 'update-core.php' )
esc_url( self_admin_url( 'update-core.php' ) )
);
}
echo '</p></div>';

View File

@ -686,7 +686,7 @@ function list_theme_updates() {
$compat .= sprintf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
__( '<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( self_admin_url( 'update-core.php' ) ),
esc_url( wp_get_update_php_url() )
);
@ -699,7 +699,7 @@ function list_theme_updates() {
$compat .= sprintf(
/* translators: %s: URL to WordPress Updates screen. */
__( '<a href="%s">Please update WordPress</a>.' ),
self_admin_url( 'update-core.php' )
esc_url( self_admin_url( 'update-core.php' ) )
);
} elseif ( current_user_can( 'update_php' ) ) {
$compat .= sprintf(
@ -720,7 +720,7 @@ function list_theme_updates() {
$compat .= sprintf(
/* translators: %s: URL to WordPress Updates screen. */
__( '<a href="%s">Please update WordPress</a>.' ),
self_admin_url( 'update-core.php' )
esc_url( self_admin_url( 'update-core.php' ) )
);
}
} elseif ( ! $compatible_php ) {

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1-alpha-53839';
$wp_version = '6.1-alpha-53840';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.