Changeset 1276
- Timestamp:
- 05/08/08 09:42:09 (2 months ago)
- Files:
-
- trunk/wp-admin/wpmu-edit.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/wpmu-edit.php
r1270 r1276 91 91 $domain = strtolower( wp_specialchars( $blog['domain'] ) ); 92 92 $email = wp_specialchars( $blog['email'] ); 93 $title = stripslashes( wp_specialchars( $blog['title'] ) ); 93 94 94 95 if ( empty($domain) || empty($email)) … … 117 118 118 119 $wpdb->hide_errors(); 119 $blog_id = wpmu_create_blog($newdomain, $path, wp_specialchars( $blog['title'] ), $user_id , array( "public" => 1 ), $current_site->id);120 $blog_id = wpmu_create_blog($newdomain, $path, $title, $user_id , array( "public" => 1 ), $current_site->id); 120 121 $wpdb->show_errors(); 121 122 if( !is_wp_error($blog_id) ) { 122 123 if( get_user_option( $user_id, 'primary_blog' ) == 1 ) 123 124 update_user_option( $user_id, 'primary_blog', $blog_id, true ); 124 $content_mail = sprintf( __("New blog created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain.$path, wp_specialchars($blog['title']));125 $content_mail = sprintf( __( "New blog created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain.$path, $title ); 125 126 wp_mail( get_site_option('admin_email'), sprintf(__('[%s] New Blog Created'), $current_site->site_name), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' ); 126 127 wp_redirect( add_query_arg( array('updated' => 'true', 'action' => 'add-blog'), $_SERVER['HTTP_REFERER'] ) );
