diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index f9a7534b6f..36d08bc81e 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -111,6 +111,8 @@ function the_modified_author() { * @return string The author's field from the current author's DB object. */ function get_the_author_meta( $field = '', $user_id = false ) { + $original_user_id = $user_id; + if ( ! $user_id ) { global $authordata; $user_id = isset( $authordata->ID ) ? $authordata->ID : 0; @@ -129,11 +131,13 @@ function get_the_author_meta( $field = '', $user_id = false ) { * The filter name is dynamic and depends on the $field parameter of the function. * * @since 2.8.0 + * @since 4.3.0 The `$original_user_id` parameter was added. * - * @param string $value The value of the metadata. - * @param int $user_id The user ID. + * @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. */ - return apply_filters( 'get_the_author_' . $field, $value, $user_id ); + return apply_filters( 'get_the_author_' . $field, $value, $user_id, $original_user_id ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index d584f38e65..4e9ef527d8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32593'; +$wp_version = '4.3-alpha-32594'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.