Changeset 53151
- Timestamp:
- 04/12/2022 06:05:45 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options.php
r52431 r53151 256 256 wp_die( __( 'Sorry, you are not allowed to modify unregistered settings for this site.' ) ); 257 257 } 258 $options = explode( ',', wp_unslash( $_POST['page_options'] ) );258 $options = isset( $_POST['page_options'] ) ? explode( ',', wp_unslash( $_POST['page_options'] ) ) : null; 259 259 } else { 260 260 $options = $allowed_options[ $option_page ]; … … 333 333 load_default_textdomain( $user_language_new ); 334 334 } 335 } else { 336 add_settings_error( 'general', 'settings_updated', __( 'Settings save failed.' ), 'error' ); 335 337 } 336 338
Note: See TracChangeset
for help on using the changeset viewer.