From 0b9998f03760744064c50d4109e25d671cff8c97 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 29 Apr 2009 16:46:45 +0000 Subject: [PATCH] Include subcats in search results. Props Denis-de-Bernardy. fixes #8632 git-svn-id: https://develop.svn.wordpress.org/trunk@11123 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 1f71950c61..955e9675dc 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -61,7 +61,7 @@ function _cat_rows( $categories, &$count, $parent = 0, $level = 0, $page = 1, $p $i++; - if ( $category->parent != $parent ) + if ( $category->parent != $parent && empty($_GET['s']) ) continue; // If the page starts in a subtree, print the parents.