Changeset 40404
- Timestamp:
- 04/10/2017 09:10:48 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r40351 r40404 786 786 global $wp_db_version, $pagenow; 787 787 788 if ( ! is_super_admin() ) {788 if ( ! current_user_can( 'upgrade_network' ) ) { 789 789 return false; 790 790 } -
trunk/src/wp-admin/network/menu.php
r40390 r40404 20 20 } 21 21 22 $submenu['index.php'][15] = array( __( 'Upgrade Network' ), ' manage_network', 'upgrade.php' );22 $submenu['index.php'][15] = array( __( 'Upgrade Network' ), 'upgrade_network', 'upgrade.php' ); 23 23 24 24 $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' ); -
trunk/src/wp-admin/network/upgrade.php
r38819 r40404 33 33 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 34 34 35 if ( ! current_user_can( ' manage_network' ) )35 if ( ! current_user_can( 'upgrade_network' ) ) { 36 36 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 37 } 37 38 38 39 echo '<div class="wrap">'; -
trunk/src/wp-includes/capabilities.php
r40394 r40404 479 479 case 'manage_network_themes': 480 480 case 'manage_network_options': 481 case 'upgrade_network': 481 482 $caps[] = $cap; 482 483 break; -
trunk/tests/phpunit/tests/user/capabilities.php
r40390 r40404 227 227 'manage_network_options' => array(), 228 228 'delete_site' => array(), 229 'upgrade_network' => array(), 229 230 230 231 'setup_network' => array( 'administrator' ), … … 260 261 'upload_themes' => array(), 261 262 'edit_css' => array(), 263 'upgrade_network' => array(), 262 264 263 265 'customize' => array( 'administrator' ),
Note: See TracChangeset
for help on using the changeset viewer.