[wp-trac] [WordPress Trac] #40551: Filter get_terms_args order and orderby are not taken into account in get_terms() function
WordPress Trac
noreply at wordpress.org
Mon Apr 24 14:14:11 UTC 2017
#40551: Filter get_terms_args order and orderby are not taken into account in
get_terms() function
--------------------------+-----------------------------
Reporter: michielve | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.7.4
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Args ''orderby'' and ''order'' are taken directly from
''$this->query_vars'' instead of ''$args'', so when you specify the
''get_terms_args'' filter and change the ''order'' and ''orderby'' args,
they are not taken into account in the ''get_terms()'' function.
In line 308:
{{{#!php
$args = $this->query_vars;
}}}
But in line 391:
{{{#!php
$_orderby = $this->query_vars['orderby'];
}}}
And in line 401:
{{{#!php
$order = $this->parse_order( $this->query_vars['order'] );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40551>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list