]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/options-head.php
WordPress 3.4.2-scripts
[autoinstalls/wordpress.git] / wp-admin / options-head.php
index 965615fd4662b41c776751c3a5699e9914050c8b..066caafbbe47b20c770c214bed445e544305119b 100644 (file)
@@ -11,6 +11,9 @@
 
 wp_reset_vars(array('action', 'standalone', 'option_group_id'));
 
 
 wp_reset_vars(array('action', 'standalone', 'option_group_id'));
 
-settings_errors();
+if ( isset( $_GET['updated'] ) && isset( $_GET['page'] ) ) {
+       // For backwards compat with plugins that don't use the Settings API and just set updated=1 in the redirect
+       add_settings_error('general', 'settings_updated', __('Settings saved.'), 'updated');
+}
 
 
-?>
\ No newline at end of file
+settings_errors();