Changeset 4634 for trunk/wp-includes/category.php
- Timestamp:
- 12/09/2006 06:35:22 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/category.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category.php
r4627 r4634 170 170 $leaf_path = sanitize_title(basename($category_paths)); 171 171 $category_paths = explode('/', $category_paths); 172 foreach($category_paths as $pathdir) 173 $full_path .= ($pathdir!=''?'/':'') . sanitize_title($pathdir); 172 $full_path = ''; 173 foreach ( (array) $category_paths as $pathdir ) 174 $full_path .= ( $pathdir != '' ? '/' : '' ) . sanitize_title($pathdir); 174 175 175 176 $categories = $wpdb->get_results("SELECT cat_ID, category_nicename, category_parent FROM $wpdb->categories WHERE category_nicename = '$leaf_path'");
Note: See TracChangeset
for help on using the changeset viewer.