admin管理员组文章数量:1434907
After the update to Wordpress 4.8 my widget's textarea has disappeared and my console says:
[Error] ReferenceError: Can't find variable: wp
Global Code (widgets.php:202)
Looking at the file I can identify this line causing the issue:
wp.textWidgets.init();
Now, I've got installed many plugins but even deactivating all those I can't solve it. Any suggestion?
After the update to Wordpress 4.8 my widget's textarea has disappeared and my console says:
[Error] ReferenceError: Can't find variable: wp
Global Code (widgets.php:202)
Looking at the file I can identify this line causing the issue:
wp.textWidgets.init();
Now, I've got installed many plugins but even deactivating all those I can't solve it. Any suggestion?
Share Improve this question edited Jun 20, 2017 at 23:05 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked Jun 20, 2017 at 17:26 middleladymiddlelady 5531 gold badge6 silver badges18 bronze badges2 Answers
Reset to default 0Looks like you need to enqueue the editor scripts manually, after 4.8, using wp_enqueue_editor()
in your theme/plugin: https://make.wordpress/core/2017/05/20/editor-api-changes-in-4-8/
I actually had to restore manually the Wordpress core and to deactivate a function in my theme which deferred all the javascript.
本文标签: coreWordpress 48Can39t find variable wp
版权声明:本文标题:core - Wordpress 4.8 - Can't find variable: wp 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745636662a2667600.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论