[wp-trac] [WordPress Trac] #61632: Allow ordering of posts by `status`
WordPress Trac
noreply at wordpress.org
Thu Jul 11 11:50:51 UTC 2024
#61632: Allow ordering of posts by `status`
-------------------------+------------------------------
Reporter: ntsekouras | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Changes (by swissspidy):
* component: REST API => Query
Comment:
`WP_Query` itself by default does not support ordering by post status,
hence changing the component.
https://github.com/WordPress/wordpress-
develop/blob/349590c8135b003857b47ff1a4636dc283d8b71c/src/wp-includes
/class-wp-query.php#L1662-L1685
I don't see why anyone would want to order by post status though, as most
posts have the same status anyway. _Filtering_ by post status makes much
more sense.
I don't know why the new data views would change this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61632#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list