WordPress.org

Make WordPress Core

Changeset 13587


Ignore:
Timestamp:
03/04/2010 09:20:55 PM (8 years ago)
Author:
ryan
Message:

Show the network enable menu only if config flag is set. Per wordpress-dev meetup. see #11644

File:
1 edited

Legend:

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

    r13585 r13587  
    155155    if ( is_multisite() && ($current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path) )
    156156        $submenu['tools.php'][25] = array( __('Delete Blog'), 'manage_options', 'ms-delete-site.php' );
    157     if ( !is_multisite() && is_super_admin() )
     157    if ( !is_multisite() && is_super_admin() && defined('WP_ENABLE_MULTISITE') )
    158158        $submenu['tools.php'][50] = array(__('Network'), 'manage_options', 'network.php');
    159159
Note: See TracChangeset for help on using the changeset viewer.