summaryrefslogtreecommitdiffstats
path: root/wp-includes/query.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-12-11 11:45:03 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-12-11 11:45:03 +0000
commit040b8591582940de99442bb1de04afdf9d3daf59 (patch)
treeceaa054562fa6089c307b48fc30e963eee357e73 /wp-includes/query.php
parent91725f574d4fa83b30d8d7c2794e9f078628e6da (diff)
downloadwordpress-mu-040b8591582940de99442bb1de04afdf9d3daf59.tar.gz
wordpress-mu-040b8591582940de99442bb1de04afdf9d3daf59.tar.xz
wordpress-mu-040b8591582940de99442bb1de04afdf9d3daf59.zip
WP Merge to rev 4640
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@823 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/query.php')
-rw-r--r--wp-includes/query.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/wp-includes/query.php b/wp-includes/query.php
index 8114bd5..05f424d 100644
--- a/wp-includes/query.php
+++ b/wp-includes/query.php
@@ -819,8 +819,9 @@ class WP_Query {
$cat_paths = '/' . trim(urldecode($q['category_name']), '/');
$q['category_name'] = sanitize_title(basename($cat_paths));
$cat_paths = explode('/', $cat_paths);
- foreach($cat_paths as $pathdir)
- $cat_path .= ($pathdir!=''?'/':'') . sanitize_title($pathdir);
+ $cat_path = '';
+ foreach ( (array) $cat_paths as $pathdir )
+ $cat_path .= ( $pathdir != '' ? '/' : '' ) . sanitize_title($pathdir);
//if we don't match the entire hierarchy fallback on just matching the nicename
if ( empty($reqcat) )