[wp-trac] [WordPress Trac] #39336: Document WP_Query orderby=relevance

WordPress Trac noreply at wordpress.org
Wed Dec 21 03:11:32 UTC 2016


#39336: Document WP_Query orderby=relevance
--------------------------+-------------------
 Reporter:  jnylen0       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.8
Component:  Query         |     Version:  3.7
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+-------------------
Changes (by boonebgorges):

 * keywords:  needs-docs has-patch => has-patch


Comment:

 Thanks for the patch, @dots.

 `$relevance` should not have its own top-level `@param` entry, as it's
 only a possible value for 'orderby'. Your patch also added an entry for
 `$type`, but as far as I can see, this is not a valid orderby parameter
 for `WP_Query`. Can you have a look at [attachment:39336.4.patch] and see
 if it matches with your understanding?

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


More information about the wp-trac mailing list