JS noConflict错误添加/编辑帖子/页面-WordPress 5.0.2升级后

时间:2018-12-27 13:15:47

标签: jquery wordpress custom-post-type wordpress-gutenberg

我已升级到wordpress 5.0.2,从前端角度看,一切似乎都正常,但是当我编辑或添加新帖子/页面时,出现以下控制台错误:

post.php?post=29329&action=edit:2689 Uncaught TypeError: Cannot read property 'noConflict' of undefined
    at post.php?post=29329&action=edit:2689
(anonymous) @ post.php?post=29329&action=edit:2689

post.php?post=29329&action=edit:2865 Uncaught TypeError: (intermediate value)(intermediate value)(intermediate value)(...) is not a function
    at post.php?post=29329&action=edit:2865

我确实尝试禁用该主题,但这样做时错误消失了,所以很明显,这当然与该主题有关。谁能指导我寻找可以解决的问题?

编辑: 当我进行wordpress调试时,以下错误是我得到的许多错误之一:

Notice: WP_Block_Type_Registry::register was called incorrectly. Block type "core/archives" is already registered. Please see Debugging in WordPress for more information. (This message was added in version 5.0.0.) in /var/www/html/wp-includes/functions.php on line 4204

0 个答案:

没有答案
相关问题