Skip to content

Commit 44358b8

Browse files
committed
Resolve boolean comparison for options
1 parent b8c91f3 commit 44358b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mailchimp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function mailchimp_sf_plugin_init() {
7070

7171
// Remove Sopresto check. If user does not have API key, make them authenticate.
7272

73-
if ( get_option( 'mc_list_id' ) && get_option( 'mc_merge_field_migrate' ) !== true && mailchimp_sf_get_api() !== false ) {
73+
if ( get_option( 'mc_list_id' ) && get_option( 'mc_merge_field_migrate' ) !== '1' && mailchimp_sf_get_api() !== false ) {
7474
mailchimp_sf_update_merge_fields();
7575
}
7676

@@ -127,7 +127,7 @@ function mailchimp_sf_load_resources() {
127127
wp_enqueue_script( 'jquery-ui-datepicker' );
128128
}
129129

130-
if ( get_option( 'mc_nuke_all_styles' ) !== true ) {
130+
if ( get_option( 'mc_nuke_all_styles' ) !== '1' ) {
131131
wp_enqueue_style( 'mailchimp_sf_main_css', home_url( '?mcsf_action=main_css&ver=' . MCSF_VER, 'relative' ), array(), MCSF_VER );
132132
wp_enqueue_style( 'mailchimp_sf_ie_css', MCSF_URL . 'css/ie.css', array(), MCSF_VER );
133133
global $wp_styles;

mailchimp_widget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function mailchimp_sf_signup_form( $args = array() ) {
6363

6464
$sub_heading = trim( get_option( 'mc_subheader_content' ) );
6565

66-
if ( get_option( 'mc_nuke_all_styles' ) !== true ) {
66+
if ( get_option( 'mc_nuke_all_styles' ) !== '1' ) {
6767
?>
6868
<style>
6969
.widget_mailchimpsf_widget .widget-title {

0 commit comments

Comments
 (0)