关闭WordPress 2.6 主题预览功能

WordPress评论3.6K阅读模式

打开\wp-admin\themes.php,找到下列代码:
add_thickbox();
wp_enqueue_script( ‘theme-preview’ );

分别在它们前面加入注释符号“//”即可。

如:

//add_thickbox();
//wp_enqueue_script( ‘theme-preview’ );

这样,当点击新主题时,就会直接激活该主题,和2.6版以前的一样。也就不会出现thickbox的主题预览效果了。

原文:http://www.thinkagain.cn/archives/971.html

本站文章大部分始于原创,用于个人学习记录,可能对您有所帮助,仅供参考!

weinxin
我的微信
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
 
知更鸟
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

拖动滑块以完成验证