Ticket #4015: 4015.diff
File 4015.diff, 679 bytes (added by , 18 years ago) |
---|
-
wp-admin/admin-functions.php
647 647 648 648 function return_categories_list( $parent = 0 ) { 649 649 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" ); 651 651 } 652 652 653 653 function sort_cats( $cat1, $cat2 ) {