Ticket #8776: 8776.5.diff
File 8776.5.diff, 1.2 KB (added by , 15 years ago) |
---|
-
wp-includes/author-template.php
83 83 * Retrieve the requested data of the author of the current post. 84 84 * @link http://codex.wordpress.org/Template_Tags/the_author_meta 85 85 * @since 2.8.0 86 * @uses $authordata The current author's DB object (if $user_id not specified). 86 87 * @param string $field selects the field of the users record. 88 * @param int $user_id Optional. User ID. 87 89 * @return string The author's field from the current author's DB object. 88 90 */ 89 91 function get_the_author_meta($field = '', $user_id = false) { 90 92 if ( ! $user_id ) 91 93 global $authordata; 92 94 else 93 $authordata = get_userdata( $ auth_id );95 $authordata = get_userdata( $user_id ); 94 96 95 97 $field = strtolower($field); 96 98 $user_field = "user_$field"; … … 110 112 * @link http://codex.wordpress.org/Template_Tags/the_author_meta 111 113 * @since 2.8.0 112 114 * @param string $field selects the field of the users record. 115 * @param int $user_id Optional. User ID. 113 116 * @echo string The author's field from the current author's DB object. 114 117 */ 115 118 function the_author_meta($field = '', $user_id = false) {