Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions projects/packages/premium-analytics/.phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
return make_phan_config(
dirname( __DIR__ ),
array(
// WooCommerce is a runtime dependency for report exports and Sync integration.
// WooCommerce and its Action Scheduler are runtime dependencies for report exports and Sync integration.
// 'wpcom' also pulls in wpcomsh's wpcom-features files (.phan/config.base.php),
// which is where wpcom_site_has_feature() is defined; it is not in the
// generated wpcom stubs.
'+stubs' => array( 'woocommerce', 'woocommerce-internal', 'wpcom' ),
'+stubs' => array( 'woocommerce', 'woocommerce-internal', 'woocommerce-packages', 'wpcom' ),
'exclude_file_regex' => array(
'build/',
// Test WooCommerce stubs would redefine the WC symbols above.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

WooCommerce tab: Resend order history once on stores that synced it through the WooCommerce Analytics plugin, so product, tax and coupon reports include past orders.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ public function schedule_export( string $report_type, array $params, int $user_i
}

try {
// @phan-suppress-next-line PhanUndeclaredFunction -- Action Scheduler; guarded by function_exists() above.
$action_id = as_enqueue_async_action(
self::EXPORT_ACTION_HOOK,
array(
Expand Down Expand Up @@ -326,9 +325,7 @@ public function schedule_cleanup(): void {
return;
}

// @phan-suppress-next-line PhanUndeclaredFunction -- Action Scheduler; guarded by function_exists() above.
if ( false === as_next_scheduled_action( self::CLEANUP_HOOK, array(), self::ACTION_GROUP ) ) {
// @phan-suppress-next-line PhanUndeclaredFunction -- Action Scheduler; guarded by function_exists() above.
as_schedule_recurring_action(
time(),
DAY_IN_SECONDS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public function configure_sync(): void {
add_filter( 'jetpack_sync_post_meta_whitelist', array( $this, 'add_meta_to_sync_post_meta_whitelist' ) );

( new Config() )->ensure( 'sync', $this->get_jetpack_sync_config() );

( new Lookup_Data_Backfill() )->register();
}

/**
Expand Down
Loading
Loading