diff options
Diffstat (limited to 'wp-includes')
-rw-r--r-- | wp-includes/wpmu-functions.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 6f570bd..6d5227d 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -1700,7 +1700,9 @@ class delete_blog { } function admin_footer() { - global $wpdb; + global $wpdb, $current_blog, $current_site; + if( $current_blog->domain . $current_blog->path == $current_site->domain . $current_site->path ) + return false; if( $this->reallydeleteblog == true ) { wpmu_delete_blog( $wpdb->blogid ); @@ -1708,7 +1710,9 @@ class delete_blog { } function admin_menu() { - add_submenu_page('options-general.php', __('Delete Blog'), __('Delete Blog'), 'manage_options', 'delete-blog', array(&$this, 'plugin_content')); + global $current_blog, $current_site; + if( $current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path ) + add_submenu_page('options-general.php', __('Delete Blog'), __('Delete Blog'), 'manage_options', 'delete-blog', array(&$this, 'plugin_content')); } function plugin_content() { |