Changeset 16306
- Timestamp:
- 11/11/2010 04:57:22 PM (14 years ago)
- Location:
- trunk/wp-admin/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/site-info.php
r16272 r16306 35 35 if ( isset( $_POST['update_home_url'] ) && $_POST['update_home_url'] == 'update' ) { 36 36 $blog_address = get_blogaddress_by_domain( $_POST['blog']['domain'], $_POST['blog']['path'] ); 37 if ( get_option( 'siteurl' ) != 37 if ( get_option( 'siteurl' ) != $blog_address ) 38 38 update_option( 'siteurl', $blog_address ); 39 39 -
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.