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:
parent
37d3add855
commit
4a2676ab8b
|
@ -127,7 +127,14 @@ 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(
|
||||||
|
get_site_option( 'admin_email' ),
|
||||||
|
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 */
|
/* translators: 1: user login, 2: site url, 3: site name/title */
|
||||||
__( 'New site created by %1$s
|
__( 'New site created by %1$s
|
||||||
|
|
||||||
|
@ -136,8 +143,13 @@ 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;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue