Ticket #5726: rand.diff
| File rand.diff, 498 bytes (added by fitztrev, 5 years ago) |
|---|
-
wp-includes/category-template.php
373 373 374 374 if ( 'DESC' == $order ) 375 375 $counts = array_reverse( $counts, true ); 376 elseif ( 'RAND' == $order ) { 377 $keys = array_rand( $counts, count($counts) ); 378 foreach ( $keys as $key ) 379 $temp[$key] = $counts[$key]; 380 $counts = $temp; 381 } 376 382 377 383 $a = array(); 378 384