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

WordPress Trac noreply at wordpress.org
Fri Jan 8 03:08:10 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:  needs-patch  |     Focuses:
-------------------------+------------------------

Comment (by mordauk):

 I needed to detect if a filter had been applied because the callback
 function tied to the filter had the possibility of triggering an infinite
 loop since it resulting in the class that ran the filter getting
 instantiated again.

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


More information about the wp-trac mailing list