Changeset 16306 for trunk/wp-admin/network/site-new.php
- Timestamp:
- 11/11/2010 04:57:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/site-new.php
r16284 r16306 24 24 25 25 if ( is_array( $_POST['blog'] ) == false ) 26 wp_die( 26 wp_die( __( 'Can’t create an empty site.' ) ); 27 27 $blog = $_POST['blog']; 28 28 $domain = ''; … … 73 73 update_user_option( $user_id, 'primary_blog', $id, true ); 74 74 $content_mail = sprintf( __( "New site created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain . $path, stripslashes( $title ) ); 75 wp_mail( get_site_option('admin_email'), 75 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' ) . '>' ); 76 76 wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) ); 77 77 wp_redirect( add_query_arg( array('update' => 'added'), 'site-new.php' ) );
Note: See TracChangeset
for help on using the changeset viewer.