Make WordPress Core


Ignore:
Timestamp:
01/20/2017 05:38:15 PM (8 years ago)
Author:
flixos90
Message:

Multisite: Replace is_super_admin() with manage_network_options in wp-admin/options.php.

Props sathyapulse.
Fixes #39200. See #37616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options.php

    r39708 r39933  
    7575}
    7676
    77 if ( is_multisite() && ! is_super_admin() && 'update' != $action ) {
     77if ( is_multisite() && ! current_user_can( 'manage_network_options' ) && 'update' != $action ) {
    7878    wp_die(
    7979        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
     
    161161
    162162    if ( 'options' == $option_page ) {
    163         if ( is_multisite() && ! is_super_admin() )
     163        if ( is_multisite() && ! current_user_can( 'manage_network_options' ) ) {
    164164            wp_die( __( 'Sorry, you are not allowed to modify unregistered settings for this site.' ) );
     165        }
    165166        $options = explode( ',', wp_unslash( $_POST[ 'page_options' ] ) );
    166167    } else {
Note: See TracChangeset for help on using the changeset viewer.