From 9ad9ff1282ed2b8c6268c0572b1623039dce0e74 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@18814 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 );