[wp-trac] [WordPress Trac] #42005: filter get_terms_args and orderby meta_value_num not working as expected
WordPress Trac
noreply at wordpress.org
Fri Feb 5 03:01:16 UTC 2021
#42005: filter get_terms_args and orderby meta_value_num not working as expected
-----------------------------+---------------------------------
Reporter: Fred_Bdx | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.8.2
Severity: normal | Resolution:
Keywords: | Focuses: ui, administration
-----------------------------+---------------------------------
Comment (by JordanPak):
I just debugged and traced through WP_Term_Query for a while to find this
same issue: `get_terms_args` is too late for the `orderby` arg to be
`meta_value_num`. I'm using `get_terms_defaults` for now as well, but if
this can't be patched there should at least be a disclaimer in the
`get_terms_args` that it won't work?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42005#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list