mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
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:
parent
d1beea5ee6
commit
1ac5894933
@ -178,12 +178,13 @@ function the_author_posts() {
|
|||||||
*/
|
*/
|
||||||
function the_author_posts_link($deprecated = '') {
|
function the_author_posts_link($deprecated = '') {
|
||||||
global $authordata;
|
global $authordata;
|
||||||
printf(
|
$link = sprintf(
|
||||||
'<a href="%1$s" title="%2$s">%3$s</a>',
|
'<a href="%1$s" title="%2$s">%3$s</a>',
|
||||||
get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
|
get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
|
||||||
esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),
|
esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),
|
||||||
get_the_author()
|
get_the_author()
|
||||||
);
|
);
|
||||||
|
echo apply_filters( 'the_author_posts_link', $link );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user