From a2582f50cc6e4859c41c549fb600cab37134037c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 31 Aug 2016 21:13:32 +0000 Subject: [PATCH] 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 --- wp-admin/user-edit.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index aa6ed7f5eb..bb3c62ec97 100644 --- a/wp-admin/user-edit.php +++ b/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 ); ?>

diff --git a/wp-includes/version.php b/wp-includes/version.php index 3bb5fdd9be..8bf5f146a0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.