升级到WordPress 3.5.1版后,我遇到了一些JS错误,因此无法在管理面板中使用一些基本的WP功能。
例如。在后期编辑页面上,我无法将编辑器切换为html模式,无法单击任何链接(“编辑”),选项卡等。
请建议应该采取什么措施,或者这是WordPress升级问题?重新安装但没有任何变化。
我在firebug控制台中注意到的错误如下。 。 。 。
TypeError: e is undefined
TypeError: $(...).pointer is not a function $(’.insert-media’).pointer( options ).pointer(‘open’);
TypeError: switchEditors is undefined switchEditors.switchto(this);
最佳答案
有时,禁用或更新插件无济于事,因为您的主题正在使用过时的JS。对我来说,这是主题使用的jQuery ui库。如果您的Wordpress版本是3.5或更高版本,则需要使用jQuery-UI 1.9.2或更高版本。
此处更多信息:http://www.hoosoft.com/blog/fix-jquery-1-8-3-error-typeerror-e-is-undefined-in-wordpress-3-5/
关于javascript - 升级到3.5.1后,“帖子”部分中的WordPress JS错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14628381/