WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/10/2017 09:10:48 PM (4 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/tests/phpunit/tests/user/capabilities.php

    r40390 r40404  
    227227            'manage_network_options' => array(),
    228228            'delete_site'            => array(),
     229            'upgrade_network'        => array(),
    229230
    230231            'setup_network'          => array( 'administrator' ),
     
    260261            'upload_themes'          => array(),
    261262            'edit_css'               => array(),
     263            'upgrade_network'        => array(),
    262264
    263265            'customize'              => array( 'administrator' ),
Note: See TracChangeset for help on using the changeset viewer.