')) ";             $where .= " AND ($wpdb->posts.post_status = 'publish') ";     }     return $where; }  // Code from Search Everywhere plugin function se_get_search_terms() {     global $wpdb, $wp_query;     $s = isset($wp_query->query_vars['s']) ? $wp_query->query_vars['s'] : '';     $sentence = isset($wp_query->query_vars['sentence']) ? $wp_query->query_vars['sentence'] : false;     $search_terms = array();      if ( !empty($s) )     {             // added slashes screw with quote grouping when done early, so done later             $s = stripslashes($s);             if ($sentence)             {                     $search_terms = array($s);             } else {                     preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $s, $matches);                     $search_terms = array_map(create_function('$a', 'return trim($a, "\\"\'\\n\\r ");'), $matches[0]);             }     }     return $search_terms; }