【发布时间】:2018-09-12 11:20:56
【问题描述】:
我无法保存更改,当我试图查看发生了什么问题时,我发现 wp 管理文件夹下的 index.php 存在问题
x.send("") 给出错误加载资源失败:服务器响应状态为 500(内部服务器错误)
<script type="text/javascript">
var compressionNonce = "8023f35fe4";
var testCompression = {
get: function(test) {
var x;
if (window.XMLHttpRequest) {
x = new XMLHttpRequest();
} else {
try {
x = new ActiveXObject('Msxml2.XMLHTTP');
} catch (e) {
try {
x = new ActiveXObject('Microsoft.XMLHTTP');
} catch (e) {};
}
}
if (x) {
x.onreadystatechange = function() {
var r, h;
if (x.readyState == 4) {
r = x.responseText.substr(0, 18);
h = x.getResponseHeader('Content-Encoding');
testCompression.check(r, h, test);
}
};
x.open('GET', ajaxurl + '?action=wp-compression-test&test=' + test + '&_ajax_nonce=' + compressionNonce + '&' + (new Date()).getTime(), true); **
* x.send(''); ** *
}
},
check: function(r, h, test) {
if (!r && !test)
this.get(1);
if (1 == test) {
if (h && (h.match(/deflate/i) || h.match(/gzip/i)))
this.get('no');
else
this.get(2);
return;
}
if (2 == test) {
if ('"wpCompressionTest' == r)
this.get('yes');
else
this.get('no');
}
}
};
testCompression.check();
</script>
【问题讨论】:
-
您要保存什么样的更改。能详细点吗?
-
x.send('');,前后打星星的目的是什么
-
例如,如果我尝试自定义主题,我无法保存更改
-
@charankumar 只是为了表明问题存在
标签: wordpress