From 939f882ff9b75c8b4bd0edad306978c935a26159 Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@12012 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ); } /**