mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Twenty Ten: Escape get_author_posts_url()
where appropriate in functions.php
file.
This changeset adds missing escaping to some instances of `get_author_posts_url()` used in Twenty Ten, as per WordPress Coding Standards. Props hztyfoon, robinwpdeveloper, mukesh27, rudlinkon, SergeyBiryukov, jakariaistauk. Fixes #56674. Built from https://develop.svn.wordpress.org/trunk@54344 git-svn-id: http://core.svn.wordpress.org/trunk@53903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
27f92a2fdc
commit
84729259de
@ -613,7 +613,7 @@ if ( ! function_exists( 'twentyten_posted_on' ) ) :
|
||||
),
|
||||
sprintf(
|
||||
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
|
||||
get_author_posts_url( get_the_author_meta( 'ID' ) ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
/* translators: %s: Author display name. */
|
||||
esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
|
||||
get_the_author()
|
||||
|
@ -45,7 +45,7 @@ if ( have_posts() ) {
|
||||
'meta-prep meta-prep-author',
|
||||
sprintf(
|
||||
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
||||
get_author_posts_url( get_the_author_meta( 'ID' ) ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
/* translators: %s: Author display name. */
|
||||
esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
|
||||
get_the_author()
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-beta2-54343';
|
||||
$wp_version = '6.1-beta2-54344';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user