WordPress.org

Make WordPress Core

Changeset 36669


Ignore:
Timestamp:
02/24/2016 02:03:25 AM (2 years ago)
Author:
SergeyBiryukov
Message:

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

Props ramiy.
Fixes #35716.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-new.php

    r36555 r36669  
    128128        }
    129129
    130         $content_mail = sprintf(
    131             /* translators: 1: user login, 2: site url, 3: site name/title */
    132             __( 'New site created by %1$s
     130        wp_mail(
     131            get_site_option( 'admin_email' ),
     132            sprintf(
     133                /* translators: %s: network name */
     134                __( '[%s] New Site Created' ),
     135                $current_site->site_name
     136            ),
     137            sprintf(
     138                /* translators: 1: user login, 2: site url, 3: site name/title */
     139                __( 'New site created by %1$s
    133140
    134141Address: %2$s
    135142Name: %3$s' ),
    136             $current_user->user_login,
    137             get_site_url( $id ),
    138             wp_unslash( $title )
     143                $current_user->user_login,
     144                get_site_url( $id ),
     145                wp_unslash( $title )
     146            ),
     147            sprintf(
     148                'From: "%1$s" <%2$s>',
     149                _x( 'Site Admin', 'email "From" field' ),
     150                get_site_option( 'admin_email' )
     151            )
    139152        );
    140         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' ) . '>' );
    141153        wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) );
    142154        wp_redirect( add_query_arg( array( 'update' => 'added', 'id' => $id ), 'site-new.php' ) );
Note: See TracChangeset for help on using the changeset viewer.