mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@35610 git-svn-id: http://core.svn.wordpress.org/trunk@35574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
62e236b3c6
commit
694ff83cc6
@ -437,6 +437,32 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c
|
||||
<p class="description"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></p></td>
|
||||
</tr>
|
||||
|
||||
<tr class="user-profile-picture">
|
||||
<th><?php _e( 'Profile Picture' ); ?></th>
|
||||
<td>
|
||||
<?php echo get_avatar( $user_id ); ?>
|
||||
<p class="description"><?php
|
||||
if ( IS_PROFILE_PAGE ) {
|
||||
/* translators: %s: Gravatar URL */
|
||||
$description = sprintf( __( 'You can change your profile picture on <a href="%s">Gravatar</a>.' ),
|
||||
__( '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 );
|
||||
?></p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Filter the display of the password fields.
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-beta3-35609';
|
||||
$wp_version = '4.4-beta3-35610';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user