diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
index 0c8c863ec7..0b55e94eb0 100644
a
|
b
|
function add_settings_error( $setting, $code, $message, $type = 'error' ) { |
1437 | 1437 | * |
1438 | 1438 | * @param string $setting Optional slug title of a specific setting who's errors you want. |
1439 | 1439 | * @param boolean $sanitize Whether to re-sanitize the setting value before returning errors. |
1440 | | * @return array Array of settings errors |
| 1440 | * @return array { |
| 1441 | * @type string $setting Slug title of the setting to which this error applies. |
| 1442 | * @type string $code Slug-name to identify the error. Used as part of 'id' attribute in HTML output. |
| 1443 | * @type string $message The formatted message text to display to the user (will be shown inside styled `<div>` and `<p>` tags). |
| 1444 | * @type string $type Optional. Message type, controls HTML class. Accepts 'error' or 'updated'. Default 'error'. |
| 1445 | * } |
1441 | 1446 | */ |
1442 | 1447 | function get_settings_errors( $setting = '', $sanitize = false ) { |
1443 | 1448 | global $wp_settings_errors; |