From 55e37c4843dcc0549086ea5b492d1e9be78853ac Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 30 May 2007 21:50:57 +0000 Subject: [PATCH] Fix slug queries. see #4189 git-svn-id: https://develop.svn.wordpress.org/trunk@5599 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/category.php b/wp-includes/category.php index a1cca72077..c1aec3cc32 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -35,7 +35,7 @@ function get_category_by_path($category_path, $full_match = true, $output = OBJE foreach ( (array) $category_paths as $pathdir ) $full_path .= ( $pathdir != '' ? '/' : '' ) . sanitize_title($pathdir); - $categories = get_terms('category', "slug=$leaf_path"); + $categories = get_terms('category', "get=all&slug=$leaf_path"); if ( empty($categories) ) return NULL;