[wp-trac] [WordPress Trac] #41350: Support for random order in WP_Term_Query::query()
WordPress Trac
noreply at wordpress.org
Mon Oct 2 18:07:20 UTC 2017
#41350: Support for random order in WP_Term_Query::query()
-------------------------------------------------+-------------------------
Reporter: camthor | Owner:
Type: feature request | SergeyBiryukov
Priority: normal | Status: closed
Component: Taxonomy | Milestone:
Severity: normal | Version: 4.8
Keywords: good-first-bug has-patch has-unit- | Resolution: wontfix
tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by bretterer):
@johnbillion I disagree with the closing of this ticket. Not because I
wrote the patch, but because of the consistency.
My suggestion here is that this does get included, but in the core WP
Query class (or where appropriate) we add some functionality that most
hosting providers and look for `ORDER BY rand()` and replace it if the
explicit option to enable `rand()` is enabled.
This allows us to have a place to educate users of the issues with
`rand()` if they are unaware and have to specifically state they are ok
with the server killing usage of it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41350#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list