mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Fix slug queries. see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5599 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user