支持 » 安装、升级和使用 » 升级3.6发不了文章,出现JS错误

  • 错误: SyntaxError: missing ) after argument list
    源文件:http://xxxxx/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,schedule,wp-ajax-response,autosave,suggest,jquery-color,wp-lists,jquery-ui-core,jquery-ui-widget,jq&load%5B%5D=uery-ui-mouse,jquery-ui-sortable,postbox,heartbeat,post,thickbox,underscore,shortcode,backbone,wp-util,wp-backbone,media-models,&load%5B%5D=wp-plupload,media-views,media-editor,wp-auth-check,editor,quicktags,jquery-ui-resizable,jquery-ui-draggable,jquery-ui-button,jqu&load%5B%5D=ery-ui-position,jquery-ui-dialog,wpdialogs,wplink,wpdialogs-popup,wp-fullscreen,media-upload&ver=3.6
    行:410,列:60
    源代码:
    ,_changeQuery:function(h,i){if(i){this.props.on(“change”,thi

    以下内容不完整:
    window.wp=window.wp||{};(function(f){var d,c,a,e,b,g;g=wp.media=function(h){var i=g.view.MediaFrame,j;if(!i){return}h=_.defaults(h||{},{frame:”select”});if(“select”===h.frame&&i.Select){j=new i.Select(h)}else{if(“post”===h.frame&&i.Post){j=new i.Post(h)}}delete h.frame;return j};_.extend(g,{model:{},view:{},controller:{},frames:{}});b=g.model.l10n=typeof _wpMediaModelsL10n===”undefined”?{}:_wpMediaModelsL10n;g.model.settings=b.settings||{};delete b.settings;e=function(i,h,j,k){if(_.isEqual(i,h)){return j===k?0:(j>k?-1:1)}else{return i>h?-1:1}};_.extend(g,{template:wp.template,post:wp.ajax.post,ajax:wp.ajax.send,fit:function(l){var i=l.width,h=l.height,k=l.maxWidth,j=l.maxHeight,m;if(!_.isUndefined(k)&&!_.isUndefined(j)){m=(i/h>k/j)?”width”:”height”}else{if(_.isUndefined(j)){m=”width”}else{if(_.isUndefined(k)&&h>j){m=”height”}}}if(“width”===m&&i>k){return{width:k,height:Math.round(k*h/i)}}else{if(“height”===m&&h>j){return{width:Math.round(j*i/h),height:j}}else{return{width:i,height:h}}}},truncate:function(h,j,i){j=j||30;i=i||”…”;if(h.length<=j){return h}return h.substr(0,j/2)+i+h.substr(-1*j/2)}});g.attachment=function(h){return d.get(h)};d=g.model.Attachment=Backbone.Model.extend({sync:function(j,i,h){if(_.isUndefined(this.id)){return f.Deferred().rejectWith(this).promise()}if(“read”===j){h=h||{};h.context=this;h.data=_.extend(h.data||{},{action:”get-attachment”,id:this.id});return g.ajax(h)}else{if(“update”===j){if(!this.get(“nonces”)||!this.get(“nonces”).update){return f.Deferred().rejectWith(this).promise()}h=h||{};h.context=this;h.data=_.extend(h.data||{},{action:”save-attachment”,id:this.id,nonce:this.get(“nonces”).update,post_id:g.model.settings.post.id});if(i.hasChanged()){h.data.changes={};_.each(i.changed,function(l,k){h.data.changes[k]=this.get(k)},this)}return g.ajax(h)}else{if(“delete”===j){h=h||{};if(!h.wait){this.destroyed=true}h.context=this;h.data=_.extend(h.data||{},{action:”delete-post”,id:this.id,_wpnonce:this.get(“nonces”)[“delete”]});return g.ajax(h).done(function(){this.destroyed=true}).fail(function(){this.destroyed=false})}else{return Backbone.Model.prototype.sync.apply(this,arguments)}}}},parse:function(i,h){if(!i){return i}i.date=new Date(i.date);i.modified=new Date(i.modified);return i},saveCompat:function(j,i){var h=this;if(!this.get(“nonces”)||!this.get(“nonces”).update){return f.Deferred().rejectWith(this).promise()}return g.post(“save-attachment-compat”,_.defaults({id:this.id,nonce:this.get(“nonces”).update,post_id:g.model.settings.post.id},j)).done(function(m,k,l){h.set(h.parse(m,l),i)})}},{create:function(h){return c.all.push(h)},get:_.memoize(function(i,h){return c.all.push(h||{id:i})})});c=g.model.Attachments=Backbone.Collection.extend({model:d,initialize:function(i,h){h=h||{};this.props=new Backbone.Model();this.filters=h.filters||{};this.props.on(“change”,this._changeFilteredProps,this);this.props.on(“change:order”,this._changeOrder,this);this.props.on(“change:orderby”,this._changeOrderby,this);this.props.on(“change:query”,this._changeQuery,this);this.props.set(_.defaults(h.props||{}));if(h.observe){this.observe(h.observe)}},_changeOrder:function(i,h){if(this.comparator){this.sort()}},_changeOrderby:function(h,i){if(this.comparator&&this.comparator!==c.comparator){return}if(i&&”post__in”!==i){this.comparator=c.comparator}else{delete this.comparator}},_changeQuery:function(h,i){if(i){this.props.on(“change”,thi

查看 2 回复 - 1 至 2 (总计 2)
  • 建议升级前停用所有插件(最好备份),某些插件与3.6不兼容也可能造成这样的问题。可以到访www.puliuke.com相互交流或qq1097234249

    为什么在wp-config.php文件加上:
    `define(‘CONCATENATE_SCRIPTS’, false );
    or
    define(‘SCRIPT_DEBUG’, true);
    就可以??????

查看 2 回复 - 1 至 2 (总计 2)
  • 话题 ‘升级3.6发不了文章,出现JS错误’不再接受新回复。