diff --git a/plugins/woocommerce-admin/changelogs/fix-8149 b/plugins/woocommerce-admin/changelogs/fix-8149 new file mode 100644 index 00000000000..df17eccc104 --- /dev/null +++ b/plugins/woocommerce-admin/changelogs/fix-8149 @@ -0,0 +1,4 @@ +Significance: patch +Type: Fix + +Fixing marketing task not displaying on Atomic sites #8150 diff --git a/plugins/woocommerce-admin/src/RemoteInboxNotifications/RuleEvaluator.php b/plugins/woocommerce-admin/src/RemoteInboxNotifications/RuleEvaluator.php index 60e3779caba..076eb448747 100644 --- a/plugins/woocommerce-admin/src/RemoteInboxNotifications/RuleEvaluator.php +++ b/plugins/woocommerce-admin/src/RemoteInboxNotifications/RuleEvaluator.php @@ -37,6 +37,11 @@ class RuleEvaluator { * @return bool The result of the operation. */ public function evaluate( $rules, $stored_state = null, $logger_args = array() ) { + + if ( is_bool( $rules ) ) { + return $rules; + } + if ( ! is_array( $rules ) ) { $rules = array( $rules ); }