[wp-trac] [WordPress Trac] #29629: Shortcode playlist random order parameter can't work

WordPress Trac noreply at wordpress.org
Fri Sep 12 02:59:27 UTC 2014


#29629: Shortcode playlist random order parameter can't work
--------------------------+------------------
 Reporter:  ialocin       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.1
Component:  Media         |     Version:  4.0
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------

Comment (by wonderboymusic):

 Turns out, this is even messier - passing `'orderby' => 'rand'` creates
 queries with`RAND() DESC` in them.

 I made more changes in [attachment:29629.2.diff] and added some unit
 tests.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29629#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list