mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 17:38:26 +01:00
Fix ASC/DESC tag ordering by count, props mrmist, fixes #8609 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
831a69f318
commit
8d72414561
@ -654,7 +654,7 @@ function wp_generate_tag_cloud( $tags, $args = '' ) {
|
||||
if ( 'name' == $orderby )
|
||||
uasort( $tags, create_function('$a, $b', 'return strnatcasecmp($a->name, $b->name);') );
|
||||
else
|
||||
uasort( $tags, create_function('$a, $b', 'return ($a->count < $b->count);') );
|
||||
uasort( $tags, create_function('$a, $b', 'return ($a->count > $b->count);') );
|
||||
|
||||
if ( 'DESC' == $order )
|
||||
$tags = array_reverse( $tags, true );
|
||||
|
Loading…
Reference in New Issue
Block a user