Ticket #14424: 14424.tag-cloud.patch
File 14424.tag-cloud.patch, 739 bytes (added by , 13 years ago) |
---|
-
wp-includes/category-template.php
642 642 } else { 643 643 // SQL cannot save you; this is a second (potentially different) sort on a subset of data. 644 644 if ( 'name' == $orderby ) 645 uasort( $tags, create_function('$a, $b', 'return strnatcasecmp($a->name, $b->name);'));645 uasort( $tags, '_wp_tag_cloud_name_sort_cb' ); 646 646 else 647 uasort( $tags, create_function('$a, $b', 'return ($a->count > $b->count);'));647 uasort( $tags, '_wp_tag_cloud_count_sort_cb' ); 648 648 649 649 if ( 'DESC' == $order ) 650 650 $tags = array_reverse( $tags, true );