[wp-trac] [WordPress Trac] #40280: Short-circuit filters can't return common values

WordPress Trac noreply at wordpress.org
Mon Aug 7 14:11:36 UTC 2017


#40280: Short-circuit filters can't return common values
-------------------------+------------------------------
 Reporter:  andy         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  4.8
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by flixos90):

 Replying to [comment:8 spacedmonkey]:
 > It would really help me to understand the patch better, if there were an
 example of how it would be implemented in core. Could this new class be
 used to replace for some (not all because different return types) the
 existing pre filters in core. An example of how developers would interact
 with would also be useful.

 https://core.trac.wordpress.org/ticket/40280#comment:6 has an example of
 how this could be used in core to address #37930. :)

 Regarding existing hooks, I don't think it's possible to adjust them at
 all, since the old return types need to remain as is for BC. This ticket
 aims at providing a consistent foundation for all future development.

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


More information about the wp-trac mailing list