WordPress.org

Make WordPress Core

Ticket #8609: category-template27.diff

File category-template27.diff, 504 bytes (added by mrmist, 6 years ago)

Category template diff fixes count orderby for 2.7

  • category-template.php

     
    649649        if ( 'name' == $orderby ) 
    650650                uasort( $tags, create_function('$a, $b', 'return strnatcasecmp($a->name, $b->name);') ); 
    651651        else 
    652                 uasort( $tags, create_function('$a, $b', 'return ($a->count < $b->count);') ); 
     652                uasort( $tags, create_function('$a, $b', 'return ($a->count > $b->count);') ); 
    653653 
    654654        if ( 'DESC' == $order ) 
    655655                $tags = array_reverse( $tags, true );