Changeset 23554 for trunk/wp-admin/network/site-new.php
- Timestamp:
- 03/01/2013 04:28:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/site-new.php
r23416 r23554 39 39 if ( ! is_array( $_POST['blog'] ) ) 40 40 wp_die( __( 'Can’t create an empty site.' ) ); 41 $blog = wp_unslash( $_POST['blog'] );41 $blog = $_POST['blog']; 42 42 $domain = ''; 43 43 if ( preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) ) … … 89 89 90 90 Address: %2$s 91 Name: %3$s' ), $current_user->user_login , get_site_url( $id ), $title);91 Name: %3$s' ), $current_user->user_login , get_site_url( $id ), stripslashes( $title ) ); 92 92 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' ) . '>' ); 93 93 wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) );
Note: See TracChangeset
for help on using the changeset viewer.