Make WordPress Core

Ticket #4015: 4015.diff

File 4015.diff, 679 bytes (added by rob1n, 18 years ago)
  • wp-admin/admin-functions.php

     
    647647
    648648function return_categories_list( $parent = 0 ) {
    649649        global $wpdb;
    650         return $wpdb->get_col( "SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent AND ( link_count = 0 OR category_count != 0 OR ( link_count = 0 AND category_count = 0 ) ) ORDER BY category_count DESC" );
     650        return $wpdb->get_col( "SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY category_count DESC" );
    651651}
    652652
    653653function sort_cats( $cat1, $cat2 ) {