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:
parent
f1631f4e03
commit
a2582f50cc
|
@ -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.
|
* Filters the user profile picture description displayed under the Gravatar.
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @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>
|
?></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue