Fix slug queries. see #4189

git-svn-id: http://svn.automattic.com/wordpress/trunk@5599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-05-30 21:50:57 +00:00
parent df1a8696d5
commit 7800ed531e
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ function get_category_by_path($category_path, $full_match = true, $output = OBJE
foreach ( (array) $category_paths as $pathdir ) foreach ( (array) $category_paths as $pathdir )
$full_path .= ( $pathdir != '' ? '/' : '' ) . sanitize_title($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) ) if ( empty($categories) )
return NULL; return NULL;