Ticket #39200: 39200.patch
File 39200.patch, 954 bytes (added by , 8 years ago) |
---|
-
src/wp-admin/options.php
74 74 } 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>' . 80 80 '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>', … … 160 160 wp_die( __( '<strong>ERROR</strong>: options page not found.' ) ); 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 $options = explode( ',', wp_unslash( $_POST[ 'page_options' ] ) ); 166 166 } else {