Ticket #18088: 18088.diff
| File 18088.diff, 1.7 KB (added by , 10 years ago) |
|---|
-
src/wp-admin/includes/template.php
1405 1405 sanitize_option( $setting, get_option( $setting ) ); 1406 1406 1407 1407 // If settings were passed back from options.php then use them. 1408 if ( isset( $_GET['settings-updated'] ) && $_GET['settings-updated']&& get_transient( 'settings_errors' ) ) {1408 if ( ( isset( $_GET['settings-updated'] ) && $_GET['settings-updated'] || is_network_admin() && isset( $_GET['updated'] ) && $_GET['updated'] ) && get_transient( 'settings_errors' ) ) { 1409 1409 $wp_settings_errors = array_merge( (array) $wp_settings_errors, get_transient( 'settings_errors' ) ); 1410 1410 delete_transient( 'settings_errors' ); 1411 1411 } -
src/wp-admin/network/settings.php
86 86 */ 87 87 do_action( 'update_wpmu_options' ); 88 88 89 // If no settings errors were registered add a general 'updated' message. 90 if ( !count( get_settings_errors() ) ) 91 add_settings_error( 'general', 'settings_updated', __( 'Options saved.' ), 'updated' ); 92 93 set_transient( 'settings_errors', get_settings_errors(), 30 ); 94 89 95 wp_redirect( add_query_arg( 'updated', 'true', network_admin_url( 'settings.php' ) ) ); 90 96 exit(); 91 97 } … … 93 99 include( ABSPATH . 'wp-admin/admin-header.php' ); 94 100 95 101 if ( isset( $_GET['updated'] ) ) { 96 ?><div id="message" class="updated notice is-dismissible"><p><?php _e( 'Options saved.' ) ?></p></div><?php102 settings_errors(); 97 103 } 98 104 ?> 99 105