WordPress.org

Make WordPress Core

Changeset 19211


Ignore:
Timestamp:
11/08/11 14:13:42 (2 years ago)
Author:
ryan
Message:

Use get_site_url() instead of hard-coding the protocol. Props SergeyBiryukov, exell.christopher. fixes #17466

File:
1 edited

Legend:

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

    r19122 r19211  
    8383        if ( !is_super_admin( $user_id ) && !get_user_option( 'primary_blog', $user_id ) ) 
    8484            update_user_option( $user_id, 'primary_blog', $id, true ); 
    85         $content_mail = sprintf( __( "New site created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain . $path, stripslashes( $title ) ); 
     85        $content_mail = sprintf( __( "New site created by %1s\n\nAddress: %2s\nName: %3s"), $current_user->user_login , get_site_url( $id ), stripslashes( $title ) ); 
    8686        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' ) . '>' ); 
    8787        wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) ); 
Note: See TracChangeset for help on using the changeset viewer.