[wp-trac] [WordPress Trac] #8885: get_posts() should default orderby post_date_gmt
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 27 22:54:16 UTC 2011
#8885: get_posts() should default orderby post_date_gmt
--------------------------+-----------------------------
Reporter: caorongjin | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Optimization | Version: 2.7
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+-----------------------------
Comment (by Denis-de-Bernardy):
The short short version of the above breaks down to:
- post_date_gmt should contain the UTC time without any daylight savings
or other adjustments. The raw stuff.
- a) If we guarantee that (not sure we currently are), then it's fine to
order posts using it.
- b) If not, we should enforce it, then we should enforce it, and can then
safely order posts using it.
Unit tests tests are needed in either case.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8885#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list