WordPress 4.2版两处问题修正
在WordPress 4.2正式版后,很多博主都第一时间升级,但经过几天运行,发现WordPress 4.2有…
在WordPress 4.2正式版后,很多博主都第一时间升级,但经过几天运行,发现WordPress 4.2有两处严重问题:
第一个是菜单设置页面“显示选项”无法打开,造成部分菜单设置功能无法使用。
第二个是新版WordPress改变了表情加载方式,居然是调用站外表情图片,而且是国外站点,要命的是这个站点已被国内GFW了,造成众多加载错误,严重影响页面加载速度。
暂时解决办法:
菜单设置页面“显示选项”BUG
用WordPress 4.1版wordpresswp-admin目录的nav-menus.php替换WordPress 4.2正式版的同名文件即可。
nav-menus下载
方法来源:http://zhangge.net/5036.html
另一个比较简单的方法:到设置中将语言切换到英文,之后菜单“显示选项”就可以正常使用了,勾选相应选项后,再切换回中文即可。
其实只有中文版本才有这个BUG,完全是由汉化者造成的问题。
表情加载问题
恢复到之前版本的加载方式:
将下面代码加到主题functions.php模板最后一个“?>”上面
展开代码
展开收缩
- function init_smilies(){
- global $wpsmiliestrans;
- $wpsmiliestrans = array(
- ‘:mrgreen:’ => ‘icon_mrgreen.gif’,
- ‘:neutral:’ => ‘icon_neutral.gif’,
- ‘:twisted:’ => ‘icon_twisted.gif’,
- ‘:arrow:’ => ‘icon_arrow.gif’,
- ‘:shock:’ => ‘icon_eek.gif’,
- ‘:smile:’ => ‘icon_smile.gif’,
- ‘:???:’ => ‘icon_confused.gif’,
- ‘:cool:’ => ‘icon_cool.gif’,
- ‘:evil:’ => ‘icon_evil.gif’,
- ‘:grin:’ => ‘icon_biggrin.gif’,
- ‘:idea:’ => ‘icon_idea.gif’,
- ‘:oops:’ => ‘icon_redface.gif’,
- ‘:razz:’ => ‘icon_razz.gif’,
- ‘:roll:’ => ‘icon_rolleyes.gif’,
- ‘:wink:’ => ‘icon_wink.gif’,
- ‘:cry:’ => ‘icon_cry.gif’,
- ‘:eek:’ => ‘icon_surprised.gif’,
- ‘:lol:’ => ‘icon_lol.gif’,
- ‘:mad:’ => ‘icon_mad.gif’,
- ‘:sad:’ => ‘icon_sad.gif’,
- ‘8-)’ => ‘icon_cool.gif’,
- ‘8-O’ => ‘icon_eek.gif’,
- ‘:-(‘ => ‘icon_sad.gif’,
- ‘:-)’ => ‘icon_smile.gif’,
- ‘:-?’ => ‘icon_confused.gif’,
- ‘:-D’ => ‘icon_biggrin.gif’,
- ‘:-P’ => ‘icon_razz.gif’,
- ‘:-o’ => ‘icon_surprised.gif’,
- ‘:-x’ => ‘icon_mad.gif’,
- ‘:-|’ => ‘icon_neutral.gif’,
- ‘;-)’ => ‘icon_wink.gif’,
- ‘8O’ => ‘icon_eek.gif’,
- ‘:(‘ => ‘icon_sad.gif’,
- ‘:)’ => ‘icon_smile.gif’,
- ‘:?’ => ‘icon_confused.gif’,
- ‘:D’ => ‘icon_biggrin.gif’,
- ‘:P’ => ‘icon_razz.gif’,
- ‘:o’ => ‘icon_surprised.gif’,
- ‘:x’ => ‘icon_mad.gif’,
- ‘:|’ => ‘icon_neutral.gif’,
- ‘;)’ => ‘icon_wink.gif’,
- ‘:!:’ => ‘icon_exclaim.gif’,
- ‘:?:’ => ‘icon_question.gif’,
- );
- }
- add_action( ‘init’, ‘init_smilies’, 5 );
源代码来自:http://www.9sep.org/remove-emoji-in-wordpress
菜单“显示选项”BUG相信在WP下次升级时会修正,但这个表情无法加载问题国内用户就杯具了….
补:更杯具的是刚刚更新的WordPress 4.2.1版只是个安全更新,上述两个问题依旧存在。
类别:WordPress入门、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。
还没有任何评论,赶紧来占个楼吧!