WordPress.org

Make WordPress Core

Changeset 10317


Ignore:
Timestamp:
01/06/09 00:35:21 (5 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

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

    r10276 r10317  
    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.