get_posts() should default orderby post_date_gmt
|Reported by:||caorongjin||Owned by:|
|Component:||Query||Keywords:||has-patch needs-testing needs-unit-tests|
the function get_posts() in posts.php is defaulted to orderby post_date. The problem with this is if entries are added in differing timezones (e.g., I changed my system timezone after x number of posts have been made), then the sorting is incorrect. Since post_date_gmt is correct despite the timezone you are in, sorting based on this should be the default behavior.
Change History (23)
comment:18 follow-ups: ↓ 19 ↓ 20 Denis-de-Bernardy — 3 years ago
comment:20 in reply to: ↑ 18 solarissmoke — 3 years ago
- Keywords has-patch needs-testing added; needs-patch removed