Commit c0ecf956b42 for woocommerce
commit c0ecf956b4288098c51baef2fc3cd4fbf48c0c19
Author: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
Date: Thu Oct 29 12:10:07 2026 -0700
Migrate the email template auto-applier enqueue to ActionSchedulerUtil (#70153)
WCEmailTemplateAutoApplier enqueues its async action through the util, so a loaded copy before 3.0.0 gets a single action scheduled for now instead of a fatal.
Split from #69847 (WOOPLUG-2435).
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
diff --git a/plugins/woocommerce/changelog/update-wooplug-2435-migrate-as-calls-email-editor b/plugins/woocommerce/changelog/update-wooplug-2435-migrate-as-calls-email-editor
new file mode 100644
index 00000000000..015a2bb07cd
--- /dev/null
+++ b/plugins/woocommerce/changelog/update-wooplug-2435-migrate-as-calls-email-editor
@@ -0,0 +1,3 @@
+Significance: patch
+Type: update
+Comment: Covered by the base PR changelog entry (#69846).
diff --git a/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php b/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php
index af8ac86378e..fe6aadd2f89 100644
--- a/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php
+++ b/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php
@@ -239,7 +239,7 @@ class WCEmailTemplateAutoApplier {
return;
}
- as_enqueue_async_action( self::AUTO_APPLY_AS_HOOK, array(), self::AUTO_APPLY_AS_GROUP );
+ ActionSchedulerUtil::enqueue_async( self::AUTO_APPLY_AS_HOOK, array(), self::AUTO_APPLY_AS_GROUP );
}
/**