diff --git a/wp-admin/options.php b/wp-admin/options.php index 4c7e2676f1..d2e1c0374f 100644 --- a/wp-admin/options.php +++ b/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( '

' . __( 'Cheatin’ uh?' ) . '

' . '

' . __( '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 ]; diff --git a/wp-includes/version.php b/wp-includes/version.php index 1ca5b162b1..3641890720 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39932'; +$wp_version = '4.8-alpha-39933'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.