From bc5519d97b0556c7252f48fe497be5aa53e3a637 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 12 Jan 2004 09:33:02 +0000 Subject: [PATCH] Fix from alex: http://wordpress.org/support/10/1636#post-11 git-svn-id: http://svn.automattic.com/wordpress/trunk@755 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 51de04e34..b0411c165 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1751,7 +1751,7 @@ function hilite($text) { $search_engines = array('wordpress', 'google', 'lycos', 'yahoo'); foreach ($search_engines as $engine) { - if ( is_referer_search_engine($engine) ) { + if ( is_referer_search_engine($engine) && !empty($term) && $term != ' ') { $query_terms = get_search_query_terms($engine); foreach ($query_terms as $term) { if (!preg_match('/<.+>/',$text)) {