Changeset 16706 for trunk/wp-admin/includes/template.php
- Timestamp:
- 12/03/2010 10:59:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r16689 r16706 1239 1239 * pageload and returns them. 1240 1240 * 1241 * If changes were just submitted ($_GET[' updated']) and settings errors were saved1241 * If changes were just submitted ($_GET['settings-updated']) and settings errors were saved 1242 1242 * to the 'settings_errors' transient then those errors will be returned instead. This 1243 1243 * is used to pass errors back across pageloads. … … 1266 1266 // If settings were passed back from options.php then use them 1267 1267 // Ignore transients if $sanitize is true, we dont' want the old values anyway 1268 if ( isset($_GET[' updated']) && $_GET['updated'] && get_transient('settings_errors') ) {1268 if ( isset($_GET['settings-updated']) && $_GET['settings-updated'] && get_transient('settings_errors') ) { 1269 1269 $settings_errors = get_transient('settings_errors'); 1270 1270 delete_transient('settings_errors'); … … 1309 1309 function settings_errors( $setting = '', $sanitize = FALSE, $hide_on_update = FALSE ) { 1310 1310 1311 if ($hide_on_update AND $_GET[' updated']) return;1311 if ($hide_on_update AND $_GET['settings-updated']) return; 1312 1312 1313 1313 $settings_errors = get_settings_errors( $setting, $sanitize );
Note: See TracChangeset
for help on using the changeset viewer.