Twenty Twenty-One: Use `esc_url()` for the WordPress.org link in `footer.php`.

Props mukesh27, poena.
Fixes #51954.
Built from https://develop.svn.wordpress.org/trunk@49762


git-svn-id: http://core.svn.wordpress.org/trunk@49485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-12-07 14:17:04 +00:00
parent 2095631176
commit 12ce5683ab
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@
printf( printf(
/* translators: %s: WordPress. */ /* translators: %s: WordPress. */
esc_html__( 'Proudly powered by %s.', 'twentytwentyone' ), esc_html__( 'Proudly powered by %s.', 'twentytwentyone' ),
'<a href="' . esc_attr__( 'https://wordpress.org/', 'twentytwentyone' ) . '">WordPress</a>' '<a href="' . esc_url( __( 'https://wordpress.org/', 'twentytwentyone' ) ) . '">WordPress</a>'
); );
?> ?>
</div><!-- .powered-by --> </div><!-- .powered-by -->

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.7-alpha-49761'; $wp_version = '5.7-alpha-49762';
/** /**
* 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.