Skip to content

Commit

Permalink
Merge pull request #2739 from woocommerce/fix/mcm-conditions
Browse files Browse the repository at this point in the history
Adjust conditions for MCM
  • Loading branch information
mikkamp authored Dec 19, 2024
2 parents 3b936b3 + e4e93b1 commit 912976c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Internal/DependencyManagement/CoreServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace Automattic\WooCommerce\GoogleListingsAndAds\Internal\DependencyManagement;

use Automattic\WooCommerce\Admin\Marketing\MarketingChannels;
use Automattic\WooCommerce\GoogleListingsAndAds\ActionScheduler\ActionScheduler;
use Automattic\WooCommerce\GoogleListingsAndAds\Admin\Redirect;
use Automattic\WooCommerce\GoogleListingsAndAds\Admin\Admin;
Expand Down Expand Up @@ -429,7 +430,7 @@ function ( ...$arguments ) {
// Share Attribute Mapping related classes
$this->share_with_tags( AttributeMappingHelper::class );

if ( defined( 'WC_MCM_EXISTS' ) ) {
if ( class_exists( MarketingChannels::class ) ) {
$this->share_with_tags( GLAChannel::class, MerchantCenterService::class, AdsCampaign::class, Ads::class, MerchantStatuses::class, ProductSyncStats::class );
$this->share_with_tags( MarketingChannelRegistrar::class, GLAChannel::class, WC::class );
}
Expand Down

0 comments on commit 912976c

Please sign in to comment.