Skip to content

Commit 63d2516

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54344 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d3c4fc0 commit 63d2516

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wp-content/themes/twentyten/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ function twentyten_posted_on() {
613613
),
614614
sprintf(
615615
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
616-
get_author_posts_url( get_the_author_meta( 'ID' ) ),
616+
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
617617
/* translators: %s: Author display name. */
618618
esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
619619
get_the_author()

src/wp-content/themes/twentyten/loop-attachment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
'meta-prep meta-prep-author',
4646
sprintf(
4747
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
48-
get_author_posts_url( get_the_author_meta( 'ID' ) ),
48+
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
4949
/* translators: %s: Author display name. */
5050
esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
5151
get_the_author()

0 commit comments

Comments
 (0)