summaryrefslogtreecommitdiffstats
path: root/wp-admin
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-17 14:36:24 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-17 14:36:24 +0000
commit9aaa0d2f1d906090ae3a1f5aaa9a1a08ee3f2fac (patch)
tree4d92040c5a83ea6d42c5657d5d196a03a7b277b6 /wp-admin
parent073d61bdd25ad16dd14b34363ddee58aa6c1cbaf (diff)
downloadwordpress-mu-9aaa0d2f1d906090ae3a1f5aaa9a1a08ee3f2fac.tar.gz
wordpress-mu-9aaa0d2f1d906090ae3a1f5aaa9a1a08ee3f2fac.tar.xz
wordpress-mu-9aaa0d2f1d906090ae3a1f5aaa9a1a08ee3f2fac.zip
Notify admin when new blog created (#83)
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@677 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin')
-rw-r--r--wp-admin/wpmu-edit.php1
1 files changed, 1 insertions, 0 deletions
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() );