WordPress.org

Make WordPress Core

Changeset 10316


Ignore:
Timestamp:
01/06/09 00:34:31 (6 years ago)
Author:
azaozz
Message:

Fix ASC/DESC tag ordering by count, props mrmist, fixes #8609 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r10275 r10316  
    655655        uasort( $tags, create_function('$a, $b', 'return strnatcasecmp($a->name, $b->name);') ); 
    656656    else 
    657         uasort( $tags, create_function('$a, $b', 'return ($a->count < $b->count);') ); 
     657        uasort( $tags, create_function('$a, $b', 'return ($a->count > $b->count);') ); 
    658658 
    659659    if ( 'DESC' == $order ) 
Note: See TracChangeset for help on using the changeset viewer.