WordPress搜索页面关键词加亮 function search_word_replace($buffer){ if(is_search()){ $arr = explode(" ", get_search_query()); $arr = array_unique($arr); foreach($arr as $v) if($v) $buffer = preg_replace("/(".$v.")/i", "$1", $buff......继续阅读