[wp-trac] [WordPress Trac] #38034: post__in orderby not working when passed in an array to orderby
WordPress Trac
noreply at wordpress.org
Fri Jan 4 22:11:33 UTC 2019
#38034: post__in orderby not working when passed in an array to orderby
--------------------------+-----------------------------
Reporter: kelvink | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version: 4.6
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Comment (by mgibbs189):
@boonebgorges Yes and no. Some of the logic was moved to parse_order(),
such as handling of `rand` and other edge cases.
The code for supporting an array-based `orderby` had many overlaps to that
of a space-separated string `orderby` (e.g. orderby => 'title
menu_order'), so combining it leaves fewer places that need sanitization.
Another patch incoming.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38034#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list