Changeset 47159
- Timestamp:
- 02/02/2020 02:40:50 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options.php
r47158 r47159 205 205 $whitelist_options = apply_filters( 'whitelist_options', $whitelist_options ); 206 206 207 /* 208 * If $_GET['action'] == 'update' we are saving settings sent from a settings page 209 */ 210 if ( 'update' == $action ) { 207 if ( 'update' == $action ) { // We are saving settings sent from a settings page. 211 208 if ( 'options' == $option_page && ! isset( $_POST['option_page'] ) ) { // This is for back compat and will eventually be removed. 212 209 $unregistered = true; … … 304 301 } 305 302 306 /* *307 * Handle settings errors and return to options page 303 /* 304 * Handle settings errors and return to options page. 308 305 */ 306 309 307 // If no settings errors were registered add a general 'updated' message. 310 308 if ( ! count( get_settings_errors() ) ) { … … 313 311 set_transient( 'settings_errors', get_settings_errors(), 30 ); 314 312 315 /** 316 * Redirect back to the settings page that was submitted 317 */ 313 // Redirect back to the settings page that was submitted. 318 314 $goback = add_query_arg( 'settings-updated', 'true', wp_get_referer() ); 319 315 wp_redirect( $goback );
Note: See TracChangeset
for help on using the changeset viewer.