-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
PHP Unit Tests: Use global transients #37122
PHP Unit Tests: Use global transients #37122
Conversation
…HP unit tests, reflecting the change in wordpress/develop 54499
From here:
|
Good catch, @ramonjd 👍
The plugin has to support older versions of WP, and this is the new API available in 5.9. The Maybe we should start removing unit tests for APIs that are part of WP core since updates should be submitted to the core anyways. |
Yeah, that's the strategy we've followed elsewhere, e.g. #36855 |
Thanks for the confirmation, @ockham. Let's merge this PR since it also contains updates for the actual REST controller and will be helpful for WP 5.8. We can remove the unit test in a separate PR. |
Thanks for the context and for testing @Mamaduka !! 🙇 I can't merge until the other tests pass, so I'll try to hunt down an admin to merge this since the PHP unit test fails are probably blocking any PRs that attempt to fix the other tests 😅 |
* Testing whether changing to the pre_site_transient_filter fixes the PHP unit tests, reflecting the change in wordpress/develop 54499 * Use global transients Co-authored-by: George Mamadashvili <georgemamadashvili@gmail.com>
Description
This PR is a just a test to see whether changing to the
pre_site_transient_filter
fixes the PHP unit tests, reflecting the changes in https://core.trac.wordpress.org/changeset/52311How has this been tested?
Silently. Waiting in the dark until the PHP Unit tests pass.
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).