WordPress.org

Make WordPress Core

Ticket #17466: 17466.patch

File 17466.patch, 1.1 KB (added by SergeyBiryukov, 4 years ago)
  • wp-admin/network/site-new.php

     
    7979        if ( !is_wp_error( $id ) ) { 
    8080                if ( !is_super_admin( $user_id ) && !get_user_option( 'primary_blog', $user_id ) ) 
    8181                        update_user_option( $user_id, 'primary_blog', $id, true ); 
    82                 $content_mail = sprintf( __( "New site created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain . $path, stripslashes( $title ) ); 
     82                $content_mail = sprintf( __( "New site created by %1s\n\nAddress: %2s\nName: %3s"), $current_user->user_login , get_site_url( $id ), stripslashes( $title ) ); 
    8383                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' ) . '>' ); 
    8484                wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) ); 
    8585                wp_redirect( add_query_arg( array('update' => 'added'), 'site-new.php' ) );