今天安装了wordpress,同时下载并启用WP-o-Matic采集插件,在wordpress后台进入WPRobot的时候会出现"Please switch to firefox / Safari"的提示.每次都得用firefox才能设置WPRobot,很麻烦.
在网上找到一篇一篇帖子,可以解决这个问题.。
方法(英文):
1. Download http://downloads.wordpress.org/plugin/wp-o-matic.1.0RC4.zip from the http://wordpress.org/extend/plugins/wp-o-matic/ page.
2. Using your favorite text editor edit the file
wp-o-matic/wpomatic.PHP
Go to line 1079 and comment out the two lines from this
if (isset($_SERVER['http_USER_AGENT']) && (strpos($_SERVER['http_USER_AGENT'],'MSIE') !== false))
dIE('Please switch to firefox / Safari');
to this
// if (isset($_SERVER['http_USER_AGENT']) && (strpos($_SERVER['http_USER_AGENT'],'MSIE') !== false))
// dIE('Please switch to firefox / Safari');
方法(中文由-LIEhuo.ORG翻译):
1.到http://wordpress.org/extend/plugins/wp-o-matic/ 下载http://downloads.wordpress.org/plugin/wp-o-matic.1.0RC4.zip
2.编辑这个文件wp-o-matic/wpomatic.PHP,大约在1079行左右看到如下代码:
if (isset($_SERVER['http_USER_AGENT']) && (strpos($_SERVER['http_USER_AGENT'],'MSIE') !== false))
dIE('Please switch to firefox / Safari');
替换为:
// if (isset($_SERVER['http_USER_AGENT']) && (strpos($_SERVER['http_USER_AGENT'],'MSIE') !== false))
// dIE('Please switch to firefox / Safari');
以上是内存溢出为你收集整理的Wordpress出现Please switch to Firefox / Safari的问题全部内容,希望文章能够帮你解决Wordpress出现Please switch to Firefox / Safari的问题所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)