wpseo_get_suggest目标关键词补丁
WordPress插件 WordPress-seo插件的百度建议词补丁。原因是原函数获取的是谷歌关键词建议,而我们根本无法访问到谷歌,故替换为百度关键词建议。
修改目标文件 /admin/ajax.php,替换 wpseo_get_suggest函数内容如下:
[php]function wpseo_get_suggest() {
check_ajax_referer( 'wpseo-get-suggest' );
$t=microtime();
$ta=explode(' ',$t);
$t=$ta[1].substr($t, 2,3);
$term = urlencode( $_GET['term'] );
$result... wpseo_get_suggest, 建议关键词, 目标关键词阅读全文