From 9aaa0d2f1d906090ae3a1f5aaa9a1a08ee3f2fac Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 17 Jul 2006 14:36:24 +0000 Subject: Notify admin when new blog created (#83) git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@677 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/wpmu-edit.php | 1 + 1 file changed, 1 insertion(+) (limited to 'wp-admin') diff --git a/wp-admin/wpmu-edit.php b/wp-admin/wpmu-edit.php index a451bf9..d822bfa 100644 --- a/wp-admin/wpmu-edit.php +++ b/wp-admin/wpmu-edit.php @@ -116,6 +116,7 @@ switch( $_GET[ 'action' ] ) { $blog_id = wpmu_create_blog($newdomain, $path, wp_specialchars( $blog['title'] ), $user_id ,'', $current_site->id); $wpdb->show_errors(); if( !is_wp_error($blog_id) ) { + @wp_mail( get_settings('admin_email'), sprintf(__('[%s] New Blog Created'), $current_site->sitename), "New blog created by {$current_user->user_login}\n\nAddress: http://{$newdomain}{$path}\nName: ".wp_specialchars( $blog['title'] ) ); wpmu_admin_do_redirect("wpmu-blogs.php"); } else { die( $blog_id->get_error_message() ); -- cgit