[wp-trac] [WordPress Trac] #36314: If orderby undefined, alter get_posts to defer to WP_Query's default
WordPress Trac
noreply at wordpress.org
Sat Aug 30 14:58:02 UTC 2025
#36314: If orderby undefined, alter get_posts to defer to WP_Query's default
-------------------------------+-----------------------
Reporter: peterwilsoncc | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: template
-------------------------------+-----------------------
Changes (by SirLouen):
* keywords: needs-patch needs-unit-tests => reporter-feedback
Comment:
@peterwilsoncc afaik, currently it orders by descending date by default
unconditionally.
Can you elaborate on the reasoning behind this enhancement proposal, for
documentation purposes and if someone looks back into the history of
changes, understands how we got to this conclusion?
It has not had any traction for one decade, so it seems this doesn't seem
too demanded or maybe is not required any more. Personally, I cannot
figure out your intentions here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36314#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list