[wp-trac] [WordPress Trac] #36314: If orderby undefined, get_posts should defer to WP_Query's default

WordPress Trac noreply at wordpress.org
Wed Mar 23 22:22:47 UTC 2016


#36314: If orderby undefined, get_posts should defer to WP_Query's default
-------------------------------+-----------------------------
 Reporter:  peterwilsoncc      |      Owner:
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:
  Focuses:  template           |
-------------------------------+-----------------------------
 If the argument is undefined, defer `get_posts` orderby & order to that of
 WP_Query's.

 For search strings, this will order posts by relevance. In other cases it
 will have no effect.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36314>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list