]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/options-head.php
WordPress 3.4
[autoinstalls/wordpress.git] / wp-admin / options-head.php
1 <?php
2 /**
3  * WordPress Options Header.
4  *
5  * Resets variables: 'action', 'standalone', and 'option_group_id'. Displays
6  * updated message, if updated variable is part of the URL query.
7  *
8  * @package WordPress
9  * @subpackage Administration
10  */
11
12 wp_reset_vars(array('action', 'standalone', 'option_group_id'));
13
14 if ( isset( $_GET['updated'] ) && isset( $_GET['page'] ) ) {
15         // For backwards compat with plugins that don't use the Settings API and just set updated=1 in the redirect
16         add_settings_error('general', 'settings_updated', __('Settings saved.'), 'updated');
17 }
18
19 settings_errors();