Users: Pass $profileuser
parameter to user_profile_picture_description
filter on "Edit User" screen.
Props turtlepod, deremohan. Fixes #37379. git-svn-id: https://develop.svn.wordpress.org/trunk@38481 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
50625a3180
commit
6c1e64d76d
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user