Skip to content

Commit

Permalink
fix: remove duplicate array item
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Jul 25, 2024
1 parent 65c8cea commit 669d211
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Modules/Promotions.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ public function can_load( $product ) {
$promotions_to_load[] = 'woo_plugins';
$promotions_to_load[] = 'neve-fse';

$promotions_to_load = array_unique( $promotions_to_load );

$this->promotions = $this->get_promotions();

$this->dissallowed_promotions = apply_filters( $product->get_key() . '_dissallowed_promotions', array() );
Expand Down

0 comments on commit 669d211

Please sign in to comment.