WordPress.org

Make WordPress Core

Changeset 22664


Ignore:
Timestamp:
11/19/12 06:11:42 (17 months ago)
Author:
nacin
Message:

Add manual new lines to a string, as double quotes with \n is not optimal due to sprintf-parsing reasons. props SergeyBiryukov, fixes #22486. see #22260.

File:
1 edited

Legend:

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

    r22272 r22664  
    8686        if ( !is_super_admin( $user_id ) && !get_user_option( 'primary_blog', $user_id ) ) 
    8787            update_user_option( $user_id, 'primary_blog', $id, true ); 
    88         $content_mail = sprintf( __( "New site created by %1$s\n\nAddress: %2$s\nName: %3$s"), $current_user->user_login , get_site_url( $id ), stripslashes( $title ) ); 
     88        $content_mail = sprintf( __( 'New site created by %1$s 
     89 
     90Address: %2$s 
     91Name: %3$s' ), $current_user->user_login , get_site_url( $id ), stripslashes( $title ) ); 
    8992        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' ) . '>' ); 
    9093        wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) ); 
Note: See TracChangeset for help on using the changeset viewer.