您的位置:首页 > 其它

解决Wordpress后台出现Please switch to Firefox / Safari提示的方法

2010-03-01 17:59 507 查看
貌似启用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');
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐