Changeset 4013
- Timestamp:
- 07/11/2006 03:33:25 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category.php
r4007 r4013 29 29 $inclusions = ''; 30 30 if ( !empty($include) ) { 31 $child_of = 0; //ignore child_of and exclude params if using include 32 $exclude = ''; 31 $child_of = 0; //ignore child_of and exclude params if using include 32 $exclude = ''; 33 33 $incategories = preg_split('/[\s,]+/',$include); 34 34 if ( count($incategories) ) { … … 41 41 } 42 42 } 43 if (!empty($inclusions)) 44 $inclusions .= ')'; 43 if (!empty($inclusions)) 44 $inclusions .= ')'; 45 45 $where .= $inclusions; 46 46 … … 58 58 } 59 59 } 60 if (!empty($exclusions)) 60 if (!empty($exclusions)) 61 61 $exclusions .= ')'; 62 $exclusions = apply_filters('list_cats_exclusions', $exclusions );62 $exclusions = apply_filters('list_cats_exclusions', $exclusions, $r ); 63 63 $where .= $exclusions; 64 64 … … 86 86 global $cat_stamps; 87 87 $cat->last_update_timestamp = $cat_stamps[$cat->cat_ID]; 88 return $cat; 88 return $cat; 89 89 } 90 90 $categories = array_map('stamp_cat', $categories); … … 95 95 $categories = & _get_cat_children($child_of, $categories); 96 96 97 return apply_filters('get_categories', $categories );97 return apply_filters('get_categories', $categories, $r); 98 98 } 99 99 … … 142 142 $categories = $wpdb->get_results("SELECT cat_ID, category_nicename, category_parent FROM $wpdb->categories WHERE category_nicename = '$leaf_path'"); 143 143 144 if ( empty($categories) ) 144 if ( empty($categories) ) 145 145 return NULL; 146 146
Note: See TracChangeset
for help on using the changeset viewer.