[wp-trac] [WordPress Trac] #40280: Short-circuit filters can't return common values
WordPress Trac
noreply at wordpress.org
Mon Mar 27 21:13:32 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: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by DrewAPicture):
I'm not sure I'd call centralizing the documentation a benefit since we're
talking about a huge variety of hooks and contexts – they're very
deliberately documented (and parsed) individually for this reason.
We can bend the hooks API to a certain point, but at some point it gets
pretty close to abusing the original intent.
That said, I wonder if maybe moving completely away from the "apply
filters" vernacular altogether would help globally clarify the intent
rather than further confuse the space of actions and filters.
e.g.
{{{
#!php
if ( wp_short_circuit( 'tag_name', $value ) {
return $value;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40280#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list