发布失败。错误信息:此响应不是合法的JSON响应。
反复测试发现文章中的代码含有 "**alert (") 时就会出现此类问题(**不算)
修改了本站伪静态规则(Nginx)并无卵用
location / {
try_files $uri $uri/ /index.php?$args;
}
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
原伪静态规则如下:
location / {
index index.html index.php;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;