| | 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 | |