diff --git wp-admin/css/common-rtl.css wp-admin/css/common-rtl.css
index 147effe..e21182e 100644
|
|
|
code {
|
| 551 | 551 | } |
| 552 | 552 | |
| 553 | 553 | div.updated, |
| | 554 | div.warning, |
| 554 | 555 | div.error { |
| 555 | 556 | padding: 0 0.6em; |
| 556 | 557 | margin: 5px 15px 2px; |
| 557 | 558 | } |
| 558 | 559 | |
| 559 | 560 | div.updated p, |
| | 561 | div.warning p, |
| 560 | 562 | div.error p { |
| 561 | 563 | margin: 0.5em 0; |
| 562 | 564 | padding: 2px; |
| 563 | 565 | } |
| 564 | 566 | |
| 565 | 567 | .wrap div.updated, |
| | 568 | .wrap div.warning, |
| 566 | 569 | .wrap div.error, |
| 567 | 570 | .media-upload-form div.error { |
| 568 | 571 | margin: 5px 0 15px; |
| … |
… |
div.updated {
|
| 576 | 579 | box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); |
| 577 | 580 | } |
| 578 | 581 | |
| | 582 | div.warning { |
| | 583 | border-right: 4px solid #ffba00; |
| | 584 | padding: 1px 12px; |
| | 585 | background-color: #fff; |
| | 586 | -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); |
| | 587 | box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); |
| | 588 | } |
| | 589 | |
| 579 | 590 | div.error { |
| 580 | 591 | border-right: 4px solid #dd3d36; |
| 581 | 592 | background: #fff; |
| … |
… |
img {
|
| 3106 | 3117 | } |
| 3107 | 3118 | |
| 3108 | 3119 | /* Feedback Messages */ |
| 3109 | | .wrap div.updated, .wrap div.error, .media-upload-form div.error { |
| | 3120 | .wrap div.updated, .wrap div.warning, .wrap div.error, .media-upload-form div.error { |
| 3110 | 3121 | margin: 20px 0 10px 0; |
| 3111 | 3122 | padding: 5px 10px; |
| 3112 | 3123 | font-size: 14px; |
diff --git wp-admin/css/common.css wp-admin/css/common.css
index 172f152..398de05 100644
|
|
|
code {
|
| 551 | 551 | } |
| 552 | 552 | |
| 553 | 553 | div.updated, |
| | 554 | div.warning, |
| 554 | 555 | div.error { |
| 555 | 556 | padding: 0 0.6em; |
| 556 | 557 | margin: 5px 15px 2px; |
| 557 | 558 | } |
| 558 | 559 | |
| 559 | 560 | div.updated p, |
| | 561 | div.warning p, |
| 560 | 562 | div.error p { |
| 561 | 563 | margin: 0.5em 0; |
| 562 | 564 | padding: 2px; |
| 563 | 565 | } |
| 564 | 566 | |
| 565 | 567 | .wrap div.updated, |
| | 568 | .wrap div.warning, |
| 566 | 569 | .wrap div.error, |
| 567 | 570 | .media-upload-form div.error { |
| 568 | 571 | margin: 5px 0 15px; |
| … |
… |
div.updated {
|
| 576 | 579 | box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); |
| 577 | 580 | } |
| 578 | 581 | |
| | 582 | div.warning { |
| | 583 | border-left: 4px solid #ffba00; |
| | 584 | padding: 1px 12px; |
| | 585 | background-color: #fff; |
| | 586 | -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); |
| | 587 | box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); |
| | 588 | } |
| | 589 | |
| 579 | 590 | div.error { |
| 580 | 591 | border-left: 4px solid #dd3d36; |
| 581 | 592 | background: #fff; |
| … |
… |
img {
|
| 3106 | 3117 | } |
| 3107 | 3118 | |
| 3108 | 3119 | /* Feedback Messages */ |
| 3109 | | .wrap div.updated, .wrap div.error, .media-upload-form div.error { |
| | 3120 | .wrap div.updated, .wrap div.warning, .wrap div.error, .media-upload-form div.error { |
| 3110 | 3121 | margin: 20px 0 10px 0; |
| 3111 | 3122 | padding: 5px 10px; |
| 3112 | 3123 | font-size: 14px; |
diff --git wp-admin/includes/template.php wp-admin/includes/template.php
index 5304cf8..d7df5df 100644
|
|
|
function do_settings_fields($page, $section) {
|
| 1313 | 1313 | * @param string $setting Slug title of the setting to which this error applies |
| 1314 | 1314 | * @param string $code Slug-name to identify the error. Used as part of 'id' attribute in HTML output. |
| 1315 | 1315 | * @param string $message The formatted message text to display to the user (will be shown inside styled <div> and <p>) |
| 1316 | | * @param string $type The type of message it is, controls HTML class. Use 'error' or 'updated'. |
| | 1316 | * @param string $type The type of message it is, controls HTML class. Use 'error', 'updated' or, since 4.1.0, 'warning'. |
| 1317 | 1317 | */ |
| 1318 | 1318 | function add_settings_error( $setting, $code, $message, $type = 'error' ) { |
| 1319 | 1319 | global $wp_settings_errors; |
diff --git wp-admin/js/common.js wp-admin/js/common.js
index fe46474..0dfe4c3 100644
|
|
|
$(document).ready( function() {
|
| 358 | 358 | }); |
| 359 | 359 | } |
| 360 | 360 | |
| 361 | | // Move .updated and .error alert boxes. Don't move boxes designed to be inline. |
| 362 | | $('div.wrap h2:first').nextAll('div.updated, div.error').addClass('below-h2'); |
| 363 | | $('div.updated, div.error').not('.below-h2, .inline').insertAfter( $('div.wrap h2:first') ); |
| | 361 | // Move .updated, .warning and .error alert boxes. Don't move boxes designed to be inline. |
| | 362 | $('div.wrap h2:first').nextAll('div.updated, div.warning, div.error').addClass('below-h2'); |
| | 363 | $('div.updated, div.warning, div.error').not('.below-h2, .inline').insertAfter( $('div.wrap h2:first') ); |
| 364 | 364 | |
| 365 | 365 | // Init screen meta |
| 366 | 366 | screenMeta.init(); |