More rel_type elimination. see #4189

git-svn-id: https://develop.svn.wordpress.org/trunk@5532 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-05-23 20:59:11 +00:00
parent 44ce2aac83
commit 510799abe8
3 changed files with 5 additions and 9 deletions
-5
View File
@@ -645,11 +645,6 @@ function checked( $checked, $current) {
echo ' checked="checked"';
}
function return_categories_list( $parent = 0 ) {
global $wpdb;
return $wpdb->get_col( "SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent AND ( type & " . TAXONOMY_CATEGORY . " != 0 ) AND ( link_count = 0 OR category_count != 0 ) ORDER BY category_count DESC" );
}
function sort_cats( $cat1, $cat2 ) {
if ( $cat1['checked'] || $cat2['checked'] )
return ( $cat1['checked'] && !$cat2['checked'] ) ? -1 : 1;