Ticket #44941: 44941.diff
File 44941.diff, 1.4 KB (added by , 6 years ago) |
---|
-
src/wp-admin/css/common.css
1427 1427 background-color: #ecf7ed; 1428 1428 } 1429 1429 1430 .notice-warning { 1430 .notice-warning, 1431 .settings-error.warning { 1431 1432 border-left-color: #ffb900; 1432 1433 } 1433 1434 … … 1444 1445 background-color: #fbeaea; 1445 1446 } 1446 1447 1447 .notice-info { 1448 .notice-info, 1449 .settings-error.info { 1448 1450 border-left-color: #00a0d2; 1449 1451 } 1450 1452 -
src/wp-admin/includes/template.php
1535 1535 * @param string $code Slug-name to identify the error. Used as part of 'id' attribute in HTML output. 1536 1536 * @param string $message The formatted message text to display to the user (will be shown inside styled 1537 1537 * `<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'. 1540 1540 */ 1541 1541 function add_settings_error( $setting, $code, $message, $type = 'error' ) { 1542 1542 global $wp_settings_errors;