[wp-trac] [WordPress Trac] #35357: Introduce did_filter()

WordPress Trac noreply at wordpress.org
Fri Jan 8 03:27:32 UTC 2016


#35357: Introduce did_filter()
--------------------------------------+------------------------
 Reporter:  mordauk                   |       Owner:  chriscct7
     Type:  enhancement               |      Status:  accepted
 Priority:  normal                    |   Milestone:  4.5
Component:  Plugins                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------
Changes (by chriscct7):

 * keywords:  needs-patch => has-patch has-unit-tests


Comment:

 In 35357.4.patch:

 - Adjusted did_filter to work similar to did_action to count the number of
 times a filter is called
 - Adjusted did_filter unit tests to test the number of times a filter that
 is called 1 and 2 times and one that is never called
 - Introduced filter_functions_run to count the number of functions run on
 a filter
 - Adjusted filter_functions_run unit tests to do what patch 3's unit tests
 did.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35357#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list