自 WP 5.8 更新以来,我的 WordPress 定制器菜单项停止工作。所以我无法点击任何项目,如小部件、设置甚至更改主题。定制器中没有按钮在工作。
当我在 WP 5.5 中使用相同的主题时,它可以 100% 工作
我尝试激活Enable jQuery Migrate Helper Plugin,但问题仍然存在。所以我确定这与我使用的主题有关。我需要解决问题。
这是我在开发工具控制台中遇到的错误
Uncaught TypeError: t.onChangeSectionExpanded is not a function
completeCallback http://localhost/atomx/wp-includes/js/dist/customize-widgets.min.js?ver=54217cb151203a814dd21ea6d0b8763c:2
completeCallback http://localhost/atomx/wp-includes/js/dist/customize-widgets.min.js?ver=54217cb151203a814dd21ea6d0b8763c:2
onChangeExpanded http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
onChangeExpanded http://localhost/atomx/wp-includes/js/dist/customize-widgets.min.js?ver=54217cb151203a814dd21ea6d0b8763c:2
_toggleExpanded http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
collapse http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
onChangeExpanded http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
jQuery 3
onChangeExpanded http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
initialize http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
jQuery 3
_toggleExpanded http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
expand http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
attachEvents http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
jQuery 9
attachEvents http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
initialize http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
jQuery 3
e http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
embed http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
initialize http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
jQuery 3
<anonymous> http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
each jQuery
<anonymous> http://localhost/atomx/wp-admin/js/customize-controls.min.js?ver=5.8:2
jQuery 13
customize-widgets.min.js:2:22838
谁能指出我正确的方向。我需要使用这个主题。我没有激活插件,所以我确定它与我使用的主题有关。
我在 localhost 上工作,因此无法共享实时 URL。最新版本的 WP 和 Wamp64
提前致谢。