Skip to content

Commit f55835e

Browse files
committed
Pass the to the {get_}the_author_meta filters. Fixes WordPress#10661 props scribu
git-svn-id: https://develop.svn.wordpress.org/trunk@11849 602fd350-edb4-49c9-b593-d223f7449a82
1 parent eaf2709 commit f55835e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wp-includes/author-template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function get_the_author_meta($field = '', $user_id = false) {
104104
else
105105
$value = isset($authordata->$field) ? $authordata->$field : '';
106106

107-
return apply_filters('get_the_author_' . $field, $value);
107+
return apply_filters('get_the_author_' . $field, $value, $user_id);
108108
}
109109

110110
/**
@@ -116,7 +116,7 @@ function get_the_author_meta($field = '', $user_id = false) {
116116
* @echo string The author's field from the current author's DB object.
117117
*/
118118
function the_author_meta($field = '', $user_id = false) {
119-
echo apply_filters('the_author_' . $field, get_the_author_meta($field, $user_id));
119+
echo apply_filters('the_author_' . $field, get_the_author_meta($field, $user_id), $user_id);
120120
}
121121

122122
/**

0 commit comments

Comments
 (0)