From 7674a767ed83540d36861862a3816f7df30b70cb Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 11 Nov 2015 19:27:11 +0000 Subject: [PATCH] Users: Add user's Gravatar to 'About the user' section on user profile page. Add `user_profile_picture_description` filter for the description text displayed under the Gravatar. Props carolinegeven, obrienlabs, SergeyBiryukov. Fixes #32286. git-svn-id: https://develop.svn.wordpress.org/trunk@35610 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/user-edit.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php index 315c88de43..12f9699d62 100644 --- a/src/wp-admin/user-edit.php +++ b/src/wp-admin/user-edit.php @@ -437,6 +437,32 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c

+ + + + +

Gravatar.' ), + __( 'https://en.gravatar.com/' ) + ); + } else { + $description = ''; + } + + /** + * Filter the user profile picture description displayed under the Gravatar. + * + * @since 4.4.0 + * + * @param string $description The description that will be printed. + */ + echo apply_filters( 'user_profile_picture_description', $description ); + ?>

+ + +