Include subcats in search results. Props Denis-de-Bernardy. fixes #8632

git-svn-id: http://svn.automattic.com/wordpress/trunk@11123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-29 16:46:45 +00:00
parent 5a1c8da169
commit 05e2ec9370

View File

@ -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.