WordPress在升级程序、主题、插件时,都会先切换到维护模式,也就是显示 “正在执行例行维护,请一分钟后回来(Briefly unavailable for scheduled maintenance. Check back in a minute)”,如果升级顺利,也就几秒左右就恢复正常;但是如果由于网速不佳等原因导致升级中断,WordPress就会一直停留在维护模式,不论前台还是后台,都一直显示“正在执行例行维护,请一分钟后回来“。
functionmkdir($path,$chmod=false,$chown=false,$chgrp=false){// safe mode fails with a trailing slash under certain PHP versions.$path= untrailingslashit($path);if(empty($path))returnfalse;if(!$chmod)$chmod= FS_CHMOD_DIR;if(!@mkdir($path))returnfalse;$this->chmod($path,$chmod);if($chown)$this->chown($path,$chown);if($chgrp)$this->chgrp($path,$chgrp);returntrue;}
将其改为:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
functionmkdir($path,$chmod=false,$chown=false,$chgrp=false){// safe mode fails with a trailing slash under certain PHP versions.if(!$chmod)$chmod=$this->permission;if(ini_get('safe_mode')&&substr($path,-1)=='/'){$path=substr($path,0,-1);}if(!@mkdir($path))returnfalse;$this->chmod($path,$chmod);if($chown)$this->chown($path,$chown);if($chgrp)$this->chgrp($path,$chgrp);returntrue;}
转自wordpress大学,https://www.wpdaxue.com/briefly-unavailable-for-scheduled-maintenance.html解决方法:WordPress在升级程序、主题、插件时,都会先切换到维护模式,也就是显示 “正在执行例行维护,请一分钟后回来(Briefly unavailable for scheduled main