Ticket #38258: 38258.patch
File 38258.patch, 1.7 KB (added by , 8 years ago) |
---|
-
src/wp-includes/author-template.php
111 111 } 112 112 113 113 /** 114 * Retrieve the requested data of the author of the current post. 115 * @link https://codex.wordpress.org/Template_Tags/the_author_meta 114 * Retrieve the requested data of the author of the current post. Valid values 115 * for the $field parameter: 116 * 117 * - admin_color 118 * - aim 119 * - comment_shortcuts 120 * - description 121 * - display_name 122 * - first_name 123 * - ID 124 * - jabber 125 * - last_name 126 * - nickname 127 * - plugins_last_view 128 * - plugins_per_page 129 * - rich_editing 130 * - user_activation_key 131 * - user_description 132 * - user_email 133 * - user_firstname 134 * - user_lastname 135 * - user_level 136 * - user_login 137 * - user_nicename 138 * - user_pass 139 * - user_registered 140 * - user_status 141 * - user_url 142 * - yim 143 * 116 144 * @since 2.8.0 117 145 * 118 146 * @global object $authordata The current author's DB object. … … 154 182 /** 155 183 * Outputs the field from the user's DB object. Defaults to current post's author. 156 184 * 157 * @link https://codex.wordpress.org/Template_Tags/the_author_meta158 *159 185 * @since 2.8.0 160 186 * 161 * @param string $field selects the field of the users record. 162 * @param int $user_id Optional. User ID. 187 * @param string $field Selects the field of the users record. See the_author_meta() 188 * for the list of possible fields. 189 * @param int $user_id Optional. User ID. 190 * 191 * @see the_author_meta() 163 192 */ 164 193 function the_author_meta( $field = '', $user_id = false ) { 165 194 $author_meta = get_the_author_meta( $field, $user_id );