[wp-trac] [WordPress Trac] #39914: 'orderby' date results differs depend on 'post_status'

WordPress Trac noreply at wordpress.org
Sun Feb 19 09:40:45 UTC 2017


#39914: 'orderby' date results differs depend on 'post_status'
--------------------------+-----------------------------
 Reporter:  esemlabel     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  4.7.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Default 'orderby' date return different order results depend on
 'post_status' passed in WP_Query.

 For example, 3 published posts with identical post_date (if bulk publish,
 import or other stuff) in WP_Query will return different posts order on
 page, which depend on 'post_status' = 'publish' or 'any'.

 Since all posts are published, setting 'post_status' should not affect
 default orderby date results. Most notably this difference in
 edit.php?post_type= in comparison with front-end WP_Query results.

 Is it normal behaviour of such querying results?

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


More information about the wp-trac mailing list