WordPress.org

Make WordPress Core

Opened 3 years ago

#39914 new defect (bug)

'orderby' date results differs depend on 'post_status'

Reported by: esemlabel Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.2
Component: Query Keywords:
Focuses: Cc:

Description

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?

Change History (0)

Note: See TracTickets for help on using tickets.