mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user