Skip to content

Commit

Permalink
General: Update English Gravatar links.
Browse files Browse the repository at this point in the history
Replace links to en.gravatar.com with links to gravatar.com as the english site now uses the base domain. This avoids an unnecessary redirect for english language sites.

The links remain translatable for non-english versions of WordPress.

Props narenin, knutsp.
Fixes #61424.


git-svn-id: https://develop.svn.wordpress.org/trunk@58810 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
peterwilsoncc committed Jul 25, 2024
1 parent 5ea8ba0 commit 4de5282
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/wp-admin/includes/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ function wp_install_defaults( $user_id ) {
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from <a href="%s">Gravatar</a>.'
),
esc_url( __( 'https://en.gravatar.com/' ) )
/* translators: The localized Gravatar URL. */
esc_url( __( 'https://gravatar.com/' ) )
);
$wpdb->insert(
$wpdb->comments,
Expand Down
3 changes: 2 additions & 1 deletion src/wp-admin/user-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,8 @@
$description = sprintf(
/* translators: %s: Gravatar URL. */
__( '<a href="%s">You can change your profile picture on Gravatar</a>.' ),
__( 'https://en.gravatar.com/' )
/* translators: The localized Gravatar URL. */
__( 'https://gravatar.com/' )
);
} else {
$description = '';
Expand Down

0 comments on commit 4de5282

Please sign in to comment.