Changeset 39933 for trunk/src/wp-admin/options.php
- Timestamp:
- 01/20/2017 05:38:15 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options.php
r39708 r39933 75 75 } 76 76 77 if ( is_multisite() && ! is_super_admin() && 'update' != $action ) {77 if ( is_multisite() && ! current_user_can( 'manage_network_options' ) && 'update' != $action ) { 78 78 wp_die( 79 79 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . … … 161 161 162 162 if ( 'options' == $option_page ) { 163 if ( is_multisite() && ! is_super_admin() )163 if ( is_multisite() && ! current_user_can( 'manage_network_options' ) ) { 164 164 wp_die( __( 'Sorry, you are not allowed to modify unregistered settings for this site.' ) ); 165 } 165 166 $options = explode( ',', wp_unslash( $_POST[ 'page_options' ] ) ); 166 167 } else {
Note: See TracChangeset
for help on using the changeset viewer.