Changeset 45086
- Timestamp:
- 04/01/2019 02:22:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/author-template.php
r44616 r45086 53 53 * @link https://codex.wordpress.org/Template_Tags/the_author 54 54 * 55 * @param string $deprecated Deprecated.56 * @param string$deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it.55 * @param string $deprecated Deprecated. 56 * @param bool $deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it. 57 57 * @return string|null The author's display name, from get_the_author(). 58 58 */ … … 154 154 * @global object $authordata The current author's DB object. 155 155 * 156 * @param string $field Optional. The user field to retrieve. Default empty.157 * @param int 156 * @param string $field Optional. The user field to retrieve. Default empty. 157 * @param int|false $user_id Optional. User ID. 158 158 * @return string The author's field from the current author's DB object, otherwise an empty string. 159 159 */ … … 182 182 * @since 4.3.0 The `$original_user_id` parameter was added. 183 183 * 184 * @param string $value The value of the metadata.185 * @param int $user_id The user ID for the value.186 * @param int| bool$original_user_id The original user ID, as passed to the function.184 * @param string $value The value of the metadata. 185 * @param int $user_id The user ID for the value. 186 * @param int|false $original_user_id The original user ID, as passed to the function. 187 187 */ 188 188 return apply_filters( "get_the_author_{$field}", $value, $user_id, $original_user_id ); … … 194 194 * @since 2.8.0 195 195 * 196 * @param string $field Selects the field of the users record. See get_the_author_meta()197 * for the list of possible fields.198 * @param int 196 * @param string $field Selects the field of the users record. See get_the_author_meta() 197 * for the list of possible fields. 198 * @param int|false $user_id Optional. User ID. 199 199 * 200 200 * @see get_the_author_meta() … … 210 210 * @since 2.8.0 211 211 * 212 * @param string $author_meta The value of the metadata.213 * @param int 212 * @param string $author_meta The value of the metadata. 213 * @param int|false $user_id The user ID. 214 214 */ 215 215 echo apply_filters( "the_author_{$field}", $author_meta, $user_id );
Note: See TracChangeset
for help on using the changeset viewer.