Text Changes: Replace "Webmaster" in output messages with more appropriate terms:

* "All at `###SITENAME###`" in `wp-admin/ms-delete-site.php`, for consistency with other Multisite emails.
* "Site admin" in `register_new_user()`, for clarity.

Props Presskopp, marybaum.
Fixes #50394.

git-svn-id: https://develop.svn.wordpress.org/trunk@48049 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-06-15 19:39:32 +00:00
parent dfcbff2db0
commit 00c0913c1f
2 changed files with 6 additions and 5 deletions

View File

@ -52,7 +52,7 @@ if ( isset( $_POST['action'] ) && 'deleteblog' === $_POST['action'] && isset( $_
$switched_locale = switch_to_locale( get_locale() );
/* translators: Do not translate USERNAME, URL_DELETE, SITE_NAME: those are placeholders. */
/* translators: Do not translate USERNAME, URL_DELETE, SITENAME, SITEURL: those are placeholders. */
$content = __(
"Howdy ###USERNAME###,
@ -68,8 +68,8 @@ some time in the future! (But remember your current site and username
are gone forever.)
Thanks for using the site,
Webmaster
###SITE_NAME###"
All at ###SITENAME###
###SITEURL###"
);
/**
* Filters the email content sent when a site in a Multisite network is deleted.
@ -82,7 +82,8 @@ Webmaster
$content = str_replace( '###USERNAME###', $user->user_login, $content );
$content = str_replace( '###URL_DELETE###', $url_delete, $content );
$content = str_replace( '###SITE_NAME###', get_network()->site_name, $content );
$content = str_replace( '###SITENAME###', get_network()->site_name, $content );
$content = str_replace( '###SITEURL###', network_home_url(), $content );
wp_mail(
get_option( 'admin_email' ),

View File

@ -2574,7 +2574,7 @@ function register_new_user( $user_login, $user_email ) {
'registerfail',
sprintf(
/* translators: %s: Admin email address. */
__( '<strong>Error</strong>: Couldn&#8217;t register you&hellip; please contact the <a href="mailto:%s">webmaster</a> !' ),
__( '<strong>Error</strong>: Couldn&#8217;t register you&hellip; please contact the <a href="mailto:%s">site admin</a>!' ),
get_option( 'admin_email' )
)
);