1

我的 wordpress 网站上的 simple-press 插件一直有问题。simple-press 的开发人员告诉我,这与从 google cdn 中提取 jquery 的网站有关。所以我们基本上注释掉了所有这些

wp_deregister_script('jquery');
wp_deregister_script('jquery-ui');

//commented them out in addition to the

wp_register_script('jquery'……
wp_register_script('jquery-ui…..

// and instead just have

wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-widget');

我对我网站上的所有文件都做了这个,但我仍然收到以下错误

Uncaught TypeError: Cannot call method 'getTitleId' of undefined jquery.ui.dialog.min.js:5

a.widget._create jquery.ui.dialog.min.js:5

a.Widget._createWidget jquery.ui.widget.min.js:5

a.widget.a.(anonymous function).(anonymous function) jquery.ui.widget.min.js:5

a.widget.bridge.a.fn.(anonymous function) jquery.ui.widget.min.js:5

e.extend.each jquery.js:2

e.fn.e.each jquery.js:2

a.widget.bridge.a.fn.(anonymous function) jquery.ui.widget.min.js:5

spjPopupImage sp-forum.js:1 onclick /filamchw/message-discussion-board/news-announcements/another-topic-with-an-image/:389 帮助任何人??:( 我使用称呼作为我的 wordpress 主题(去主题森林查看示例)。

谢谢,格雷吉

4

0 回答 0