Upgrade/Install: Make first comment URLs translatable.
This allows translators to localize the `https://wordpress.org/` and `https://gravatar.com/` URLs in the first comment on a new installation. Follow-up to [2409], [37888], [37921]. Props kebbet, desrosj. Fixes #54535. Built from https://develop.svn.wordpress.org/trunk@52451 git-svn-id: http://core.svn.wordpress.org/trunk@52043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
55aaefe766
commit
c9cf90786c
|
@ -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 <a href="https://gravatar.com">Gravatar</a>.'
|
||||
Commenter avatars come from <a href="%s">Gravatar</a>.'
|
||||
),
|
||||
esc_url( __( 'https://en.gravatar.com/' ) )
|
||||
);
|
||||
$wpdb->insert(
|
||||
$wpdb->comments,
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue