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
This commit is contained in:
Peter Westwood 2009-10-08 21:04:04 +00:00
parent d1beea5ee6
commit 1ac5894933
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 );
}
/**