Changeset 4039 for trunk/wp-includes/category.php
- Timestamp:
- 07/24/2006 06:24:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category.php
r4015 r4039 71 71 if ( $hide_empty ) { 72 72 if ( 'link' == $type ) 73 $ having = 'HAVINGlink_count > 0';73 $where .= ' AND link_count > 0'; 74 74 else 75 $ having = 'HAVINGcategory_count > 0';75 $where .= ' AND category_count > 0'; 76 76 } 77 77 … … 81 81 $number = ''; 82 82 83 $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE $where $havingORDER BY $orderby $order $number");83 $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE $where ORDER BY $orderby $order $number"); 84 84 85 85 if ( empty($categories) )
Note: See TracChangeset
for help on using the changeset viewer.