mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
999b52eb75
As the filter is only intended for a single test, it can be converted to a closure instead of being declared as a function in the global namespace. The `remove_filter()` part is redundant, as `WP_UnitTestCase_Base` saves the state of filter-related globals at `set_up()` and restores them on `tear_down()`. Follow-up to [54175]. Props jrf, SergeyBiryukov. See #56791. git-svn-id: https://develop.svn.wordpress.org/trunk@54917 602fd350-edb4-49c9-b593-d223f7449a82