Docs: Correct parameter types for `the_author()`, `get_the_author_meta()`, and `the_author_meta()`.
Props subrataemfluence. Fixes #45596. Built from https://develop.svn.wordpress.org/trunk@45086 git-svn-id: http://core.svn.wordpress.org/trunk@44895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0aedea9470
commit
95541a86ff
|
@ -53,7 +53,7 @@ function get_the_author( $deprecated = '' ) {
|
|||
* @link https://codex.wordpress.org/Template_Tags/the_author
|
||||
*
|
||||
* @param string $deprecated Deprecated.
|
||||
* @param string $deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it.
|
||||
* @param bool $deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it.
|
||||
* @return string|null The author's display name, from get_the_author().
|
||||
*/
|
||||
function the_author( $deprecated = '', $deprecated_echo = true ) {
|
||||
|
@ -154,7 +154,7 @@ function the_modified_author() {
|
|||
* @global object $authordata The current author's DB object.
|
||||
*
|
||||
* @param string $field Optional. The user field to retrieve. Default empty.
|
||||
* @param int $user_id Optional. User ID.
|
||||
* @param int|false $user_id Optional. User ID.
|
||||
* @return string The author's field from the current author's DB object, otherwise an empty string.
|
||||
*/
|
||||
function get_the_author_meta( $field = '', $user_id = false ) {
|
||||
|
@ -183,7 +183,7 @@ function get_the_author_meta( $field = '', $user_id = false ) {
|
|||
*
|
||||
* @param string $value The value of the metadata.
|
||||
* @param int $user_id The user ID for the value.
|
||||
* @param int|bool $original_user_id The original user ID, as passed to the function.
|
||||
* @param int|false $original_user_id The original user ID, as passed to the function.
|
||||
*/
|
||||
return apply_filters( "get_the_author_{$field}", $value, $user_id, $original_user_id );
|
||||
}
|
||||
|
@ -195,7 +195,7 @@ function get_the_author_meta( $field = '', $user_id = false ) {
|
|||
*
|
||||
* @param string $field Selects the field of the users record. See get_the_author_meta()
|
||||
* for the list of possible fields.
|
||||
* @param int $user_id Optional. User ID.
|
||||
* @param int|false $user_id Optional. User ID.
|
||||
*
|
||||
* @see get_the_author_meta()
|
||||
*/
|
||||
|
@ -210,7 +210,7 @@ function the_author_meta( $field = '', $user_id = false ) {
|
|||
* @since 2.8.0
|
||||
*
|
||||
* @param string $author_meta The value of the metadata.
|
||||
* @param int $user_id The user ID.
|
||||
* @param int|false $user_id The user ID.
|
||||
*/
|
||||
echo apply_filters( "the_author_{$field}", $author_meta, $user_id );
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2-beta1-45085';
|
||||
$wp_version = '5.2-beta1-45086';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue