Make WordPress Core

Ticket #29629: 29629.diff

File 29629.diff, 1.1 KB (added by Otto42, 10 years ago)
  • src/wp-includes/media.php

     
    11661166 *
    11671167 *     @type string  $type         Type of playlist to display. Accepts 'audio' or 'video'. Default 'audio'.
    11681168 *     @type string  $order        Designates ascending or descending order of items in the playlist.
    1169  *                                 Accepts 'ASC', 'DESC', or 'RAND'. Default 'ASC'.
     1169 *                                 Accepts 'ASC', 'DESC'. Default 'ASC'.
    11701170 *     @type string  $orderby      Any column, or columns, to sort the playlist. If $ids are
    11711171 *                                 passed, this defaults to the order of the $ids array ('post__in').
    11721172 *                                 Otherwise default is 'menu_order ID'.
     
    12431243        ), $attr, 'playlist' );
    12441244
    12451245        $id = intval( $atts['id'] );
    1246         if ( 'RAND' == $atts['order'] ) {
    1247                 $atts['orderby'] = 'none';
    1248         }
    1249 
     1246       
    12501247        $args = array(
    12511248                'post_status' => 'inherit',
    12521249                'post_type' => 'attachment',