Ticket #45438: 45438.2.patch
File 45438.2.patch, 888 bytes (added by , 6 years ago) |
---|
-
src/wp-admin/options.php
222 222 if ( is_multisite() && ! current_user_can( 'manage_network_options' ) ) { 223 223 wp_die( __( 'Sorry, you are not allowed to modify unregistered settings for this site.' ) ); 224 224 } 225 $options = explode( ',', wp_unslash( $_POST['page_options'] ) );225 $options = isset( $_POST['page_options'] ) ? explode( ',', wp_unslash( $_POST[ 'page_options' ] ) ) : null; 226 226 } else { 227 227 $options = $whitelist_options[ $option_page ]; 228 228 } … … 293 293 if ( $user_language_old !== $user_language_new ) { 294 294 load_default_textdomain( $user_language_new ); 295 295 } 296 } else { 297 add_settings_error( 'general', 'settings_updated', __( 'Settings save failed.' ), 'error' ); 296 298 } 297 299 298 300 /**