You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Administration: Update out of date error message styling.
Change several error message across core to use WordPress standard styling. Ensure only prefixes are wrapped in `strong` tags rather than the whole message, use `notice notice-error` classes where appropriate, and replace a custom error with `wp_admin_notice()` in multisite.
Props afercia, rajinsharwar, robinmartijn, mukesh27, sabernhardt, oglekler, joedolson, chaion07, im3dabasia1, audrasjb, dkarfa, najmulsaju.
Fixes #50402.
git-svn-id: https://develop.svn.wordpress.org/trunk@59960 602fd350-edb4-49c9-b593-d223f7449a82
$('#ajax-response').empty().append('<div class="error"><p>'+wp.i18n.__('Sorry, you are not allowed to do that.')+'</p></div>');
58
+
$('#ajax-response').empty().append('<div class="notice notice-error"><p>'+wp.i18n.__('Sorry, you are not allowed to do that.')+'</p></div>');
59
59
tr.children().css('backgroundColor','');
60
60
61
61
}else{
62
-
$('#ajax-response').empty().append('<div class="error"><p>'+wp.i18n.__('An error occurred while processing your request. Please try again later.')+'</p></div>');
62
+
$('#ajax-response').empty().append('<div class="notice notice-error"><p>'+wp.i18n.__('An error occurred while processing your request. Please try again later.')+'</p></div>');
0 commit comments