描述
参数
$响应 布尔 | WP_错误 必修的 安装开始前的安装响应。 $主题 阵列 必修的 主题参数。
来源
公共函数current_before($response,$theme){ if(iswp_error($response)){ 返回$response; } $theme=isset($theme['theme'])$ 主题[主题]:''; //仅在主题处于活动状态时运行。 if(get_stylesheet()!==$ 主题){ 返回$response; } //更改为维护模式。 批量编辑单独处理此问题。 if(!$this->批量){ $this->maintenance_mode(true); } 返回$response; }