diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 39e68594bd..df2621dab7 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -642,9 +642,9 @@ function wp_generate_tag_cloud( $tags, $args = '' ) { } else { // SQL cannot save you; this is a second (potentially different) sort on a subset of data. if ( 'name' == $orderby ) - uasort( $tags, create_function('$a, $b', 'return strnatcasecmp($a->name, $b->name);') ); + uasort( $tags, '_wp_tag_cloud_name_sort_cb' ); else - uasort( $tags, create_function('$a, $b', 'return ($a->count > $b->count);') ); + uasort( $tags, '_wp_tag_cloud_count_sort_cb' ); if ( 'DESC' == $order ) $tags = array_reverse( $tags, true );