[wp-trac] [WordPress Trac] #33369: Cannot intelligently target using the `get_terms_args` filter
WordPress Trac
noreply at wordpress.org
Wed Aug 26 02:42:58 UTC 2015
#33369: Cannot intelligently target using the `get_terms_args` filter
-----------------------------------+------------------------------
Reporter: johnjamesjacoby | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 2.2
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------------------
Comment (by boonebgorges):
> Excluding a default parameter from the args I'm passing to the function
is not an implicit waiver that I don't care about that arg.
Agreed, but again, any plugin can currently do the following:
{{{
add_filter( 'get_terms_args', function( $args, $taxonomies ) {
$args['orderby'] = 'id';
return $args;
} );
}}}
If you don't like the idea of plugins running roughshod over your
parameters, then what you're really arguing against is the idea of having
filters on argument arrays in the first place. What's being proposed here
is simply the passing of additional data to an existing filter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33369#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list