[wp-trac] [WordPress Trac] #26963: wp_get_object_terms using wrong orderby statement
WordPress Trac
noreply at wordpress.org
Fri Jan 31 07:32:00 UTC 2014
#26963: wp_get_object_terms using wrong orderby statement
-------------------------------+------------------------------
Reporter: danielvonmitschke | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.8
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by bcworkz):
* keywords: => reporter-feedback
Comment:
The `'term_order'` column only appears on the term relationships table.
There is no such column on the terms table, `'t.term_order'` is an invalid
reference.
The default taxonomies do not use term_order AFAIK. Custom taxonomies can
use it to store the order in which terms are added to objects. The
term_relationships table is the only table that contains both term and
object references, so it's logical for the term_order to be on the same
table.
That much should be clear, perhaps you did not explain your concern well.
Care to try again?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26963#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list