WordPress.org

Make WordPress Core

Ticket #44941: 44941.diff

File 44941.diff, 1.4 KB (added by desrosj, 18 months ago)
  • src/wp-admin/css/common.css

     
    14271427        background-color: #ecf7ed;
    14281428}
    14291429
    1430 .notice-warning {
     1430.notice-warning,
     1431.settings-error.warning {
    14311432        border-left-color: #ffb900;
    14321433}
    14331434
     
    14441445        background-color: #fbeaea;
    14451446}
    14461447
    1447 .notice-info {
     1448.notice-info,
     1449.settings-error.info {
    14481450        border-left-color: #00a0d2;
    14491451}
    14501452
  • src/wp-admin/includes/template.php

     
    15351535 * @param string $code    Slug-name to identify the error. Used as part of 'id' attribute in HTML output.
    15361536 * @param string $message The formatted message text to display to the user (will be shown inside styled
    15371537 *                        `<div>` and `<p>` tags).
    1538  * @param string $type    Optional. Message type, controls HTML class. Accepts 'error' or 'updated'.
    1539  *                        Default 'error'.
     1538 * @param string $type    Optional. Message type, controls HTML class. Accepts 'error', 'updated', 'info',
     1539 *                        or 'warning'. Default 'error'.
    15401540 */
    15411541function add_settings_error( $setting, $code, $message, $type = 'error' ) {
    15421542        global $wp_settings_errors;