Make WordPress Core


Ignore:
Timestamp:
11/12/2004 11:08:51 PM (21 years ago)
Author:
rboren
Message:

Sort the category list so that index associations are made non-sparse.

File:
1 edited

Legend:

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

    r1527 r1851  
    99
    1010    if ($category_cache[$id]) {
    11         return $category_cache[$id];
     11             $categories = $category_cache[$id];
    1212    } else {
    1313        $categories = $wpdb->get_results("
     
    1717            ");
    1818   
    19         return $categories;
    20     }
     19    }
     20
     21        sort($categories);
     22        return $categories;
    2123}
    2224
Note: See TracChangeset for help on using the changeset viewer.