Users: Pass $profileuser parameter to user_profile_picture_description filter on "Edit User" screen.

Props turtlepod, deremohan.
Fixes #37379.
Built from https://develop.svn.wordpress.org/trunk@38481


git-svn-id: http://core.svn.wordpress.org/trunk@38422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-08-31 21:13:32 +00:00
parent f1631f4e03
commit a2582f50cc
2 changed files with 5 additions and 3 deletions

View File

@ -473,10 +473,12 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c
* Filters the user profile picture description displayed under the Gravatar.
*
* @since 4.4.0
* @since 4.7.0 Added the `$profileuser` parameter.
*
* @param string $description The description that will be printed.
* @param string $description The description that will be printed.
* @param WP_User $profileuser The current WP_User object.
*/
echo apply_filters( 'user_profile_picture_description', $description );
echo apply_filters( 'user_profile_picture_description', $description, $profileuser );
?></p>
</td>
</tr>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38480';
$wp_version = '4.7-alpha-38481';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.