From 7d1e552528ab613bf2dcaa2bcce87badf4bb5d27 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 2 Oct 2006 21:52:11 +0000 Subject: [PATCH] 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 --- wp-admin/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 786e58ec5a..a779cc8b51 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -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 ) {