Ticket #29629: 29629.diff
File 29629.diff, 1.1 KB (added by , 10 years ago) |
---|
-
src/wp-includes/media.php
1166 1166 * 1167 1167 * @type string $type Type of playlist to display. Accepts 'audio' or 'video'. Default 'audio'. 1168 1168 * @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'. 1170 1170 * @type string $orderby Any column, or columns, to sort the playlist. If $ids are 1171 1171 * passed, this defaults to the order of the $ids array ('post__in'). 1172 1172 * Otherwise default is 'menu_order ID'. … … 1243 1243 ), $attr, 'playlist' ); 1244 1244 1245 1245 $id = intval( $atts['id'] ); 1246 if ( 'RAND' == $atts['order'] ) { 1247 $atts['orderby'] = 'none'; 1248 } 1249 1246 1250 1247 $args = array( 1251 1248 'post_status' => 'inherit', 1252 1249 'post_type' => 'attachment',