-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGS-8452] remove
nonce_life
filter (#293)
* add a new function that will get the filter callback name this way it's easier to debug because we can show people where they've added the filter * alter the filtered message with the filter callback name(s) if it's in an anonymous function, we note that. * handle the anonymous function string early so we don't need to reset it to the string we want to output later * if one callaback, wrap in code tags or just output as plaintext (if anonymous) * drop handling the 'an anonymous function' transform * add test filter callbacks * add tests * adjust linting * remove $priority not used * bump tested-up-to * apparently this is a gutenberg thing * WP 6.7 changes the output of human_time_diff * strip out alpha, beta, rc, etc tags from version these aren't valid versions, so version_compare freaks out and (incorrectly) flags 6.7-alpha-whatever as less than 6.7 🤦♂️ * don't filter nonce_life instead define an action that can be called by users * alter and simplify filter_nonce_cache_lifetime reframe this to be used in a `do_action` by customers who are need to make this change to alter the cache lifetime for nonces * update readmes remove duplicated section about the cache max age filter * remove var_dump * update the nonce test * fix readme spacing * set the initial cache value to 600 so it's set when we start the tests * remove broken tests and add tests for each available option * remove behat tests that fail because we can't change the setting * fix the wp cli command * use set, since the option doesn't exist * add the pantheon-cache option if it doesn't exist * add the value of the option to add if the option didn't exist * remove the conditional we can assume the setting doesn't exist * remove the updated test we're testing this with unit tests and this is being annoying in behat * update composer deps
- Loading branch information
1 parent
8ef69e1
commit 2b55db2
Showing
8 changed files
with
227 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters