Make WordPress Core

Ticket #32286: 32286.2.patch

File 32286.2.patch, 1.1 KB (added by SergeyBiryukov, 11 years ago)
  • src/wp-admin/user-edit.php

     
    437437        <p class="description"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></p></td>
    438438</tr>
    439439
     440<tr class="user-profile-picture">
     441        <th><?php _e( 'Profile Picture' ); ?></th>
     442        <td>
     443                <?php echo get_avatar( $user_id ); ?>
     444                <p class="description"><?php
     445                        if ( IS_PROFILE_PAGE ) {
     446                                /* translators: %s: Gravatar URL */
     447                                $description = sprintf( __( 'You can change your profile picture on <a href="%s">Gravatar</a>.' ),
     448                                        __( 'https://en.gravatar.com/' )
     449                                );
     450                        } else {
     451                                $description = '';
     452                        }
     453
     454                        /**
     455                         * Filter the user profile picture description displayed under the Gravatar.
     456                         *
     457                         * @since 4.4.0
     458                         *
     459                         * @param string $description The description that will be printed.
     460                         */
     461                        echo apply_filters( 'user_profile_picture_description', $description );
     462                ?></p>
     463        </td>
     464</tr>
     465
    440466<?php
    441467/**
    442468 * Filter the display of the password fields.