Skip to content

Commit 5c0967c

Browse files
committed
Ensure the admin error messages are styled a bit more so they are obviously errors
1 parent 412b786 commit 5c0967c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mailchimp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,14 @@ function mailchimp_sf_request_handler() {
227227
try {
228228
$api = new MailChimp_API( $key );
229229
} catch ( Exception $e ) {
230-
$msg = '<strong class="mc_error_msg">' . $e->getMessage() . '</strong>';
230+
$msg = '<strong class="error_msg">' . $e->getMessage() . '</strong>';
231231
mailchimp_sf_global_msg( $msg );
232232
break;
233233
}
234234

235235
$key = mailchimp_sf_verify_key( $api );
236236
if ( is_wp_error( $key ) ) {
237-
$msg = '<strong class="mc_error_msg">' . $key->get_error_message() . '</strong>';
237+
$msg = '<strong class="error_msg">' . $key->get_error_message() . '</strong>';
238238
mailchimp_sf_global_msg( $msg );
239239
}
240240

views/setup_page.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@
132132

133133
if ( count( $lists ) === 0 ) {
134134
?>
135-
<span class='error_msg'>
135+
<div class="error_msg">
136136
<?php
137137
printf(
138138
// translators: placeholder is a link to Mailchimp
139139
esc_html( __( 'Uh-oh, you don\'t have any lists defined! Please visit %s, login, and setup a list before using this tool!', 'mailchimp_i18n' ) ),
140140
"<a href='http://www.mailchimp.com/'>Mailchimp</a>"
141141
);
142142
?>
143-
</span>
143+
</div>
144144
<?php
145145
} else {
146146
?>

0 commit comments

Comments
 (0)