2013-10-06 34 views
0

我已經安裝WordPress的我的服務器上,但是當我嘗試添加新的頁面切換到文本編輯器,我在控制檯檢索錯誤:WordPress的jQuery UI的錯誤

TypeError: 'undefined' is not a function (evaluating 'a.curCSS(l,"padding"+this,true)') jquery-ui.min.js:14 
TypeError: 'undefined' is not an object (evaluating 'switchEditors.switchto') post.php:257 

我下載了最新版本的WordPress的,所以我想jquery是最新的。

我該如何解決?這可能是問題所在?謝謝!

回答

0

我不熟悉WordPress的,但如果它包含了最新的jQuery版本,應該是問題原因,因爲從1.8 jQuery的去除$.curCSS功能在release notes解釋說:

What’s Been Removed

[...]

$.curCSS: This method was simply an alias for jQuery.css() from jQuery 1.3 onward. Although it has never been part of the documented API, some external code has been known to use it, perhaps thinking it was 「more efficient.」 Now it’s 「more gone.」