diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
index 6dc7cc931f..4dfddbdf99 100644
|
a
|
b
|
function add_settings_error( $setting, $code, $message, $type = 'error' ) { |
| 1846 | 1846 | * |
| 1847 | 1847 | * @param string $setting Optional. Slug title of a specific setting whose errors you want. |
| 1848 | 1848 | * @param bool $sanitize Optional. Whether to re-sanitize the setting value before returning errors. |
| 1849 | | * @return array { |
| 1850 | | * Array of settings errors. |
| 1851 | | * |
| 1852 | | * @type string $setting Slug title of the setting to which this error applies. |
| 1853 | | * @type string $code Slug-name to identify the error. Used as part of 'id' attribute in HTML output. |
| 1854 | | * @type string $message The formatted message text to display to the user (will be shown inside styled |
| 1855 | | * `<div>` and `<p>` tags). |
| 1856 | | * @type string $type Optional. Message type, controls HTML class. Possible values include 'error', |
| 1857 | | * 'success', 'warning', 'info'. Default 'error'. |
| | 1849 | * @return array[] { |
| | 1850 | * Array of settings error arrays. |
| | 1851 | * |
| | 1852 | * @type array ...$0 { |
| | 1853 | * Associative array of setting error data. |
| | 1854 | * |
| | 1855 | * @type string $setting Slug title of the setting to which this error applies. |
| | 1856 | * @type string $code Slug-name to identify the error. Used as part of 'id' attribute in HTML output. |
| | 1857 | * @type string $message The formatted message text to display to the user (will be shown inside styled |
| | 1858 | * `<div>` and `<p>` tags). |
| | 1859 | * @type string $type Optional. Message type, controls HTML class. Possible values include 'error', |
| | 1860 | * 'success', 'warning', 'info'. Default 'error'. |
| | 1861 | * } |
| 1858 | 1862 | * } |
| 1859 | 1863 | */ |
| 1860 | 1864 | function get_settings_errors( $setting = '', $sanitize = false ) { |