mirror of
git://develop.git.wordpress.org/
synced 2025-04-21 04:31:55 +02:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@52451 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
580e57a6e0
commit
0cd255c856
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user