Ensure error messages look like, well, errors.

props obenland, rachelbaker.
fixes #32475.


git-svn-id: https://develop.svn.wordpress.org/trunk@33117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi 2015-07-07 23:10:57 +00:00
parent 5de7ee67ce
commit 41705c3e7c
4 changed files with 4 additions and 7 deletions

View File

@ -570,10 +570,6 @@ code {
margin: 10px 20px 0 2px;
}
.attention {
color: #00a0d2;
}
.wrap h1,
.wrap h2,
.subtitle {
@ -2011,6 +2007,7 @@ table .column-rating {
text-align: left;
}
.attention,
.error-message {
color: red;
font-weight: 600;

View File

@ -451,7 +451,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
global $status, $totals;
if ( $theme->errors() ) {
$pre = $status == 'broken' ? __( 'Broken Theme:' ) . ' ' : '';
echo '<p><strong class="attention">' . $pre . $theme->errors()->get_error_message() . '</strong></p>';
echo '<p><strong class="error-message">' . $pre . $theme->errors()->get_error_message() . '</strong></p>';
}
if ( $this->is_site_themes ) {

View File

@ -473,7 +473,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
$description = '<p><strong>' . $dropins[ $plugin_file ][0] . '</strong></p>';
} else {
$is_active = false;
$description = '<p><strong>' . $dropins[ $plugin_file ][0] . ' <span class="attention">' . __('Inactive:') . '</span></strong> ' . sprintf( __( 'Requires <code>%s</code> in <code>wp-config.php</code>.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '</p>';
$description = '<p><strong>' . $dropins[ $plugin_file ][0] . ' <span class="error-message">' . __('Inactive:') . '</span></strong> ' . sprintf( __( 'Requires <code>%s</code> in <code>wp-config.php</code>.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '</p>';
}
if ( $plugin_data['Description'] )
$description .= '<p>' . $plugin_data['Description'] . '</p>';

View File

@ -824,7 +824,7 @@ class WP_Posts_List_Table extends WP_List_Table {
_e( 'Published' );
} elseif ( 'future' == $post->post_status ) {
if ( $time_diff > 0 ) {
echo '<strong class="attention">' . __( 'Missed schedule' ) . '</strong>';
echo '<strong class="error-message">' . __( 'Missed schedule' ) . '</strong>';
} else {
_e( 'Scheduled' );
}