Changeset 4634 for trunk/wp-includes/query.php
- Timestamp:
- 12/09/2006 06:35:22 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r4618 r4634 820 820 $q['category_name'] = sanitize_title(basename($cat_paths)); 821 821 $cat_paths = explode('/', $cat_paths); 822 foreach($cat_paths as $pathdir) 823 $cat_path .= ($pathdir!=''?'/':'') . sanitize_title($pathdir); 822 $cat_path = ''; 823 foreach ( (array) $cat_paths as $pathdir ) 824 $cat_path .= ( $pathdir != '' ? '/' : '' ) . sanitize_title($pathdir); 824 825 825 826 //if we don't match the entire hierarchy fallback on just matching the nicename
Note: See TracChangeset
for help on using the changeset viewer.