From 476b3d9a65b50707fe14237de5a0fd9df865e1dd Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 29 Sep 2011 17:09:04 +0000 Subject: [PATCH] Use _wp_tag_cloud_count_sort_cb instead of an anonymous function. Props ocean90. see #14424 git-svn-id: http://svn.automattic.com/wordpress/trunk@18814 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );