WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/10/2017 09:10:48 PM (3 years ago)
Author:
flixos90
Message:

Multisite: Introduce an upgrade_network capability.

Prior to this change, a mix of is_super_admin() calls and manage_network capability checks was used to determine whether the current user could upgrade the network. With this changeset a dedicated capability is introduced that allows more granular handling.

Props dhanendran for the original patch.
Fixes #39205. See #37616.

File:
1 edited

Legend:

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

    r40390 r40404  
    2020}
    2121
    22 $submenu['index.php'][15] = array( __( 'Upgrade Network' ), 'manage_network', 'upgrade.php' );
     22$submenu['index.php'][15] = array( __( 'Upgrade Network' ), 'upgrade_network', 'upgrade.php' );
    2323
    2424$menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
Note: See TracChangeset for help on using the changeset viewer.