From 657826a9315844499af0134d8f418aff3f541999 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 30 Apr 2009 19:55:29 +0000 Subject: [PATCH] Use correct var. Update phpdoc. Props MichaelH, coffee2code. fixes #8776 git-svn-id: http://svn.automattic.com/wordpress/trunk@11142 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/author-template.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index bc630858e..eee78132c 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -83,14 +83,16 @@ function the_modified_author() { * Retrieve the requested data of the author of the current post. * @link http://codex.wordpress.org/Template_Tags/the_author_meta * @since 2.8.0 + * @uses $authordata The current author's DB object (if $user_id not specified). * @param string $field selects the field of the users record. + * @param int $user_id Optional. User ID. * @return string The author's field from the current author's DB object. */ function get_the_author_meta($field = '', $user_id = false) { if ( ! $user_id ) global $authordata; else - $authordata = get_userdata( $auth_id ); + $authordata = get_userdata( $user_id ); $field = strtolower($field); $user_field = "user_$field"; @@ -110,6 +112,7 @@ function get_the_author_meta($field = '', $user_id = false) { * @link http://codex.wordpress.org/Template_Tags/the_author_meta * @since 2.8.0 * @param string $field selects the field of the users record. + * @param int $user_id Optional. User ID. * @echo string The author's field from the current author's DB object. */ function the_author_meta($field = '', $user_id = false) {