Pass the to the {get_}the_author_meta filters. Fixes #10661 props scribu

git-svn-id: http://svn.automattic.com/wordpress/trunk@11849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-08-20 16:21:44 +00:00
parent e545f9af13
commit 46d7e1dd71
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ function get_the_author_meta($field = '', $user_id = false) {
else else
$value = isset($authordata->$field) ? $authordata->$field : ''; $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. * @echo string The author's field from the current author's DB object.
*/ */
function the_author_meta($field = '', $user_id = false) { 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);
} }
/** /**