From 6c1e64d76dedbcfcc87afdcd913f0363a6633e51 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 31 Aug 2016 21:12:29 +0000 Subject: [PATCH] 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 --- src/wp-admin/user-edit.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php index aa6ed7f5eb..bb3c62ec97 100644 --- a/src/wp-admin/user-edit.php +++ b/src/wp-admin/user-edit.php @@ -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 ); ?>