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

git-svn-id: http://svn.automattic.com/wordpress/trunk@4272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-10-02 21:52:11 +00:00
parent e416b64e80
commit 6a11fe2c7a
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) {
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 ) {