WordPress.org

Make WordPress Core

Ticket #8609: category-template.diff

File category-template.diff, 561 bytes (added by mrmist, 5 years ago)

Category template fixes count order by for trunk

  • category-template.php

     
    646646        if ( 'name' == $orderby ) 
    647647                uasort( $tags, create_function('$a, $b', 'return strnatcasecmp($a->name, $b->name);') ); 
    648648        else 
    649                 uasort( $tags, create_function('$a, $b', 'return ($a->count < $b->count);') ); 
     649                uasort( $tags, create_function('$a, $b', 'return ($a->count > $b->count);') ); 
    650650 
    651651        if ( 'DESC' == $order ) 
    652652                $tags = array_reverse( $tags, true );