Pass the to the {get_}the_author_meta filters. Fixes #10661 props scribu
git-svn-id: https://develop.svn.wordpress.org/trunk@11849 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eaf2709b64
commit
f55835e0db
@ -104,7 +104,7 @@ function get_the_author_meta($field = '', $user_id = false) {
|
||||
else
|
||||
$value = isset($authordata->$field) ? $authordata->$field : '';
|
||||
|
||||
return apply_filters('get_the_author_' . $field, $value);
|
||||
return apply_filters('get_the_author_' . $field, $value, $user_id);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -116,7 +116,7 @@ function get_the_author_meta($field = '', $user_id = false) {
|
||||
* @echo string The author's field from the current author's DB object.
|
||||
*/
|
||||
function the_author_meta($field = '', $user_id = false) {
|
||||
echo apply_filters('the_author_' . $field, get_the_author_meta($field, $user_id));
|
||||
echo apply_filters('the_author_' . $field, get_the_author_meta($field, $user_id), $user_id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user