From 1ac58949332255e80e534bcbda2d20d611226fa1 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 8 Oct 2009 21:04:04 +0000 Subject: [PATCH] Add a filter to the_author_posts_link(). Fixes #10691 props sirzooro and filosofo. git-svn-id: https://develop.svn.wordpress.org/trunk@12012 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/author-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index fc90562c7a..84fb6f5568 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -178,12 +178,13 @@ function the_author_posts() { */ function the_author_posts_link($deprecated = '') { global $authordata; - printf( + $link = sprintf( '%3$s', get_author_posts_url( $authordata->ID, $authordata->user_nicename ), esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ), get_the_author() ); + echo apply_filters( 'the_author_posts_link', $link ); } /**