Add the_author filter. Props markjaquith. fixes #1531
git-svn-id: https://develop.svn.wordpress.org/trunk@2858 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ef3b0185ed
commit
4acb163183
@ -2,7 +2,7 @@
|
||||
|
||||
function get_the_author($idmode = '') {
|
||||
global $authordata;
|
||||
return $authordata->display_name;
|
||||
return apply_filters('the_author', $authordata->display_name);
|
||||
}
|
||||
|
||||
function the_author($idmode = '', $echo = true) {
|
||||
@ -208,4 +208,4 @@ function list_authors($optioncount = false, $exclude_admin = true, $show_fullnam
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user