Changeset 37342 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 05/02/2016 03:59:56 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r37330 r37342 1429 1429 1430 1430 /** 1431 * Display settings errors registered by {@see add_settings_error()}.1431 * Display settings errors registered by add_settings_error(). 1432 1432 * 1433 1433 * Part of the Settings API. Outputs a div for each error retrieved by 1434 * {@see get_settings_errors()}.1434 * get_settings_errors(). 1435 1435 * 1436 1436 * This is called automatically after a settings page based on the 1437 1437 * Settings API is submitted. Errors should be added during the validation 1438 * callback function for a setting defined in {@see register_setting()}1439 * 1440 * The $sanitize option is passed into {@see get_settings_errors()}and will1438 * callback function for a setting defined in register_setting(). 1439 * 1440 * The $sanitize option is passed into get_settings_errors() and will 1441 1441 * re-run the setting sanitization 1442 1442 * on its current value. … … 1452 1452 * @param string $setting Optional slug title of a specific setting who's errors you want. 1453 1453 * @param bool $sanitize Whether to re-sanitize the setting value before returning errors. 1454 * @param bool $hide_on_update If set to true errors will not be shown if the settings page has already been submitted. 1454 * @param bool $hide_on_update If set to true errors will not be shown if the settings page has 1455 * already been submitted. 1455 1456 */ 1456 1457 function settings_errors( $setting = '', $sanitize = false, $hide_on_update = false ) {
Note: See TracChangeset
for help on using the changeset viewer.