I18N: Add translator comments and context to "New Site Created" email notification strings.

Props ramiy.
Fixes #35716.
Built from https://develop.svn.wordpress.org/trunk@36669


git-svn-id: http://core.svn.wordpress.org/trunk@36636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-02-24 02:04:28 +00:00
parent 37d3add855
commit 4a2676ab8b
2 changed files with 20 additions and 8 deletions

View File

@ -127,17 +127,29 @@ if ( isset($_REQUEST['action']) && 'add-site' == $_REQUEST['action'] ) {
update_user_option( $user_id, 'primary_blog', $id, true ); update_user_option( $user_id, 'primary_blog', $id, true );
} }
$content_mail = sprintf( wp_mail(
/* translators: 1: user login, 2: site url, 3: site name/title */ get_site_option( 'admin_email' ),
__( 'New site created by %1$s sprintf(
/* translators: %s: network name */
__( '[%s] New Site Created' ),
$current_site->site_name
),
sprintf(
/* translators: 1: user login, 2: site url, 3: site name/title */
__( 'New site created by %1$s
Address: %2$s Address: %2$s
Name: %3$s' ), Name: %3$s' ),
$current_user->user_login, $current_user->user_login,
get_site_url( $id ), get_site_url( $id ),
wp_unslash( $title ) wp_unslash( $title )
),
sprintf(
'From: "%1$s" <%2$s>',
_x( 'Site Admin', 'email "From" field' ),
get_site_option( 'admin_email' )
)
); );
wp_mail( get_site_option('admin_email'), sprintf( __( '[%s] New Site Created' ), $current_site->site_name ), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' );
wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) ); wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) );
wp_redirect( add_query_arg( array( 'update' => 'added', 'id' => $id ), 'site-new.php' ) ); wp_redirect( add_query_arg( array( 'update' => 'added', 'id' => $id ), 'site-new.php' ) );
exit; exit;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-alpha-36668'; $wp_version = '4.5-alpha-36669';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.