From 297e7149328b8fd8c183e44d320d09f5abcd8d59 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 9 Nov 2013 15:53:09 +0000 Subject: [PATCH] Declare the variable before using it. props tivnet. fixes #25895 for trunk. Built from https://develop.svn.wordpress.org/trunk@26060 git-svn-id: http://core.svn.wordpress.org/trunk@25983 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/query.php b/wp-includes/query.php index 4600dc93e8..a1c0354774 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2017,6 +2017,7 @@ class WP_Query { $words = explode( ',', _x( 'about,an,are,as,at,be,by,com,for,from,how,in,is,it,of,on,or,that,the,this,to,was,what,when,where,who,will,with,www', 'Comma-separated list of search stopwords in your language' ) ); + $stopwords = array(); foreach( $words as $word ) { $word = trim( $word, "\r\n\t " ); if ( $word )