diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
index be6d02809a..f02ede68bc 100644
|
|
function do_settings_fields( $page, $section ) { |
1685 | 1685 | * page is first accessed. |
1686 | 1686 | * |
1687 | 1687 | * @since 3.0.0 |
| 1688 | * @since 5.3 Added support for 'info' and 'warning' as `$type`. |
1688 | 1689 | * |
1689 | 1690 | * @global array $wp_settings_errors Storage array of errors registered during this pageload |
1690 | 1691 | * |
… |
… |
function do_settings_fields( $page, $section ) { |
1692 | 1693 | * @param string $code Slug-name to identify the error. Used as part of 'id' attribute in HTML output. |
1693 | 1694 | * @param string $message The formatted message text to display to the user (will be shown inside styled |
1694 | 1695 | * `<div>` and `<p>` tags). |
1695 | | * @param string $type Optional. Message type, controls HTML class. Accepts 'error' or 'updated'. |
1696 | | * Default 'error'. |
| 1696 | * @param string $type Optional. Message type, controls HTML class. Accepts 'error', 'updated', 'info', |
| 1697 | * or 'warning'. Default 'error'. |
1697 | 1698 | */ |
1698 | 1699 | function add_settings_error( $setting, $code, $message, $type = 'error' ) { |
1699 | 1700 | global $wp_settings_errors; |