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
This commit is contained in:
westi 2009-10-08 21:04:04 +00:00
parent c6a7824592
commit 939f882ff9
1 changed files with 2 additions and 1 deletions

View File

@ -178,12 +178,13 @@ function the_author_posts() {
*/
function the_author_posts_link($deprecated = '') {
global $authordata;
printf(
$link = sprintf(
'<a href="%1$s" title="%2$s">%3$s</a>',
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 );
}
/**