From 2228ee7b9cdea4b3918d4ec995f2069c848591f9 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 4 Apr 2006 08:41:49 +0000 Subject: [PATCH] Remove this artificial limit, it messes up posting with seldom-used categories git-svn-id: http://svn.automattic.com/wordpress/trunk@3693 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 93cbe1c4c6..a3a2d101ad 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -569,7 +569,7 @@ function checked($checked, $current) { function return_categories_list($parent = 0) { global $wpdb; - return $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY category_count DESC LIMIT 100"); + return $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY category_count DESC"); } function sort_cats($cat1, $cat2) { @@ -765,7 +765,7 @@ function wp_dropdown_cats($currentcat = 0, $currentparent = 0, $parent = 0, $lev function return_link_categories_list($parent = 0) { global $wpdb; - return $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY link_count DESC LIMIT 100"); + return $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY link_count DESC"); } function wp_create_thumbnail($file, $max_side, $effect = '') {