[wp-trac] [WordPress Trac] #17817: do_action/apply_filters/etc. recursion on same filter kills underlying call

WordPress Trac noreply at wordpress.org
Sat Mar 22 14:12:55 UTC 2014


#17817: do_action/apply_filters/etc. recursion on same filter kills underlying call
-------------------------------------------------+-------------------------
 Reporter:  kernfel                              |       Owner:
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
Component:  Plugins                              |  Release
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch needs-testing dev-         |  Resolution:
  feedback has-unit-tests                        |     Focuses:
-------------------------------------------------+-------------------------

Comment (by toscho):

 If we are are talking about
 [http://wordpress.stackexchange.com/questions/57079/how-to-remove-a
 -filter-that-is-an-anonymous-object/57088#57088 removing anonymous
 objects] – this must continue to work. This solution is active on many
 sites, we would break too much.

 `WP_Hook_Iterator::__construct()` should be SOLID, i.e. depend on an
 abstraction, not on a concrete class. There should be an interface for
 `WP_Hook`.

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


More information about the wp-trac mailing list