diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php
index 2af5946558..f00595a55b 100644
--- a/wp-admin/includes/upgrade.php
+++ b/wp-admin/includes/upgrade.php
@@ -272,11 +272,15 @@ if ( ! function_exists( 'wp_install_defaults' ) ) :
$first_comment_author = ! empty( $first_comment_author ) ? $first_comment_author : __( 'A WordPress Commenter' );
$first_comment_email = ! empty( $first_comment_email ) ? $first_comment_email : 'wapuu@wordpress.example';
- $first_comment_url = ! empty( $first_comment_url ) ? $first_comment_url : 'https://wordpress.org/';
- $first_comment = ! empty( $first_comment ) ? $first_comment : __(
- 'Hi, this is a comment.
+ $first_comment_url = ! empty( $first_comment_url ) ? $first_comment_url : esc_url( __( 'https://wordpress.org/' ) );
+ $first_comment = ! empty( $first_comment ) ? $first_comment : sprintf(
+ /* translators: %s: Gravatar URL. */
+ __(
+ 'Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
-Commenter avatars come from Gravatar.'
+Commenter avatars come from Gravatar.'
+ ),
+ esc_url( __( 'https://en.gravatar.com/' ) )
);
$wpdb->insert(
$wpdb->comments,
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 1f95b5def1..ad9ca39ab7 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.0-alpha-52450';
+$wp_version = '6.0-alpha-52451';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.