[wp-trac] [WordPress Trac] #31045: Ordering a Query Using Multiple Meta Keys

WordPress Trac noreply at wordpress.org
Sat Jan 31 19:25:40 UTC 2015


#31045: Ordering a Query Using Multiple Meta Keys
-----------------------------+---------------------------
 Reporter:  Funkatronic      |       Owner:  boonebgorges
     Type:  feature request  |      Status:  reopened
 Priority:  normal           |   Milestone:  4.2
Component:  Query            |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+---------------------------
Changes (by DrewAPicture):

 * keywords:  has-patch => needs-patch


Comment:

 After talking to @boonebgorges in Slack, my best suggestion is that we go
 with `clause_id` for the argument name. I share his concerns about using
 the word "alias" in the argument name because of the implication that it
 any effect on the actual alias used when building the query.

 The purpose of the discussion is to as simply as possible, draw a line
 between setting the value in the clause and referencing it in the orderby
 definition. By avoiding the use of the word "orderby" in the new argument
 name, we also don't lock ourselves into that vernacular should we find
 another good use for this argument in the future.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31045#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list