Changeset 18814
- Timestamp:
- 09/29/2011 05:09:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r18326 r18814 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 )
Note: See TracChangeset
for help on using the changeset viewer.