-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Load fulfillments classes in init action hook (#59869) #59881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load fulfillments classes in init action hook (#59869) #59881
Conversation
* Load fulfillments classes in init action hook * Add changefile(s) from automation for the following project(s): woocommerce * Small change to restart tests * Remove two consecutive empty lines --------- Co-authored-by: github-actions <github-actions@github.com>
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. Test this pull request with WordPress Playground. Note that this URL is valid for 30 days from when this comment was last updated. You can update it by closing/reopening the PR or pushing a new commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved! Context: p1752849462502169-slack-C07JJG089M0
IMPORTANT: Merging this PR to the appropriate branches is critical to the release process and ensures that the bug does not cause regressions in the future releases. Cherry picking failed for the trunk. Please bring this to release team's attention. Workflow link for debugging: https://github.com/woocommerce/woocommerce/actions/runs/16443499227 |
Cherry picking for the trunk failed because the changes were already merged to trunk. |
Submission Review Guidelines:
Changes proposed in this Pull Request:
Note
The original fix is already merged on trunk: #59869
This PR moves the class initializations of the fulfillments feature to the init action hook, and fixes the tests. (Also fixes one warning surfacing on the test runs, not related with this problem.)
Closes #59870 WOOPLUG-5128
(For Bug Fixes) Bug introduced in PR #57353
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
Before this PR, when you go to any page, you'll get a warning on your error log file saying that load text domain was called early. After applying these changes, you should see the warning is gone.
Testing that has already taken place:
Changelog entry
Changelog Entry Details
Significance
Type
Message
Changelog Entry Comment
Comment
This PR is addressing a CFE by cherry picking a commit from trunk, and it already has a changefile attached.