Show all cats when editing link. Order cats by most used.

git-svn-id: https://develop.svn.wordpress.org/trunk@4272 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-10-02 21:52:11 +00:00
parent 384b956cc1
commit 7d1e552528
1 changed files with 1 additions and 1 deletions

View File

@ -670,7 +670,7 @@ function dropdown_categories($default = 0) {
function return_link_categories_list($parent = 0) { function return_link_categories_list($parent = 0) {
global $wpdb; global $wpdb;
return $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent AND link_count > 0"); return $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY link_count DESC");
} }
function get_nested_link_categories( $default = 0, $parent = 0 ) { function get_nested_link_categories( $default = 0, $parent = 0 ) {