diff --git a/src/wp-admin/options.php b/src/wp-admin/options.php index 4c7e2676f1..d2e1c0374f 100644 --- a/src/wp-admin/options.php +++ b/src/wp-admin/options.php @@ -74,7 +74,7 @@ if ( is_multisite() ) { } } -if ( is_multisite() && ! is_super_admin() && 'update' != $action ) { +if ( is_multisite() && ! current_user_can( 'manage_network_options' ) && 'update' != $action ) { wp_die( '
' . __( 'Sorry, you are not allowed to delete these items.' ) . '
', @@ -160,8 +160,9 @@ if ( 'update' == $action ) { wp_die( __( 'ERROR: options page not found.' ) ); if ( 'options' == $option_page ) { - if ( is_multisite() && ! is_super_admin() ) + if ( is_multisite() && ! current_user_can( 'manage_network_options' ) ) { wp_die( __( 'Sorry, you are not allowed to modify unregistered settings for this site.' ) ); + } $options = explode( ',', wp_unslash( $_POST[ 'page_options' ] ) ); } else { $options = $whitelist_options[ $option_page ];