[wp-trac] [WordPress Trac] #28439: Add 'post_date' as a possible orderby argument to get_terms()
WordPress Trac
noreply at wordpress.org
Tue Jun 3 14:57:53 UTC 2014
#28439: Add 'post_date' as a possible orderby argument to get_terms()
--------------------------+------------------------------
Reporter: jchristopher | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.9.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by jchristopher):
* keywords: => has-patch
Comment:
Replying to [comment:1 lpointet]:
> How does this query behaves when a same term is applied to multiple
posts?
> Because joining on posts may return multiple times the same terms for
instance.
You're absolutely right! `28439.2.patch` ensures `SELECT DISTINCT` to
avoid duplicate terms.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28439#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list