Make WordPress Core

Changeset 13645


Ignore:
Timestamp:
03/10/2010 04:06:53 PM (15 years ago)
Author:
wpmuguru
Message:

Delete blog to Delete site, props markmcwilliams, see #12572, code cleanup, see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r13638 r13645  
    180180    $submenu['tools.php'][10] = array( __('Import'), 'import', 'import.php' );
    181181    $submenu['tools.php'][15] = array( __('Export'), 'import', 'export.php' );
    182     if ( is_multisite() && ($current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path) )
    183         $submenu['tools.php'][25] = array( __('Delete Blog'), 'manage_options', 'ms-delete-site.php' );
     182    if ( is_multisite() && !is_main_site() )
     183        $submenu['tools.php'][25] = array( __('Delete Site'), 'manage_options', 'ms-delete-site.php' );
    184184    if ( is_super_admin() && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE )
    185185        $submenu['tools.php'][50] = array(__('Network'), 'manage_options', 'network.php');
Note: See TracChangeset for help on using the changeset viewer.