rescan_required = $sitepress->get_setting( self::OPTION_NAME, false ); } public function should_fix_content() { return $this->sitepress->get_current_request_data( self::SHOULD_FIX_CONTENT_STATE, true ); } public function is_rescan_required() { return $this->rescan_required; } public function set_rescan_required() { $this->rescan_required = true; $this->sitepress->set_setting( self::OPTION_NAME, $this->rescan_required, true ); $this->sitepress->set_current_request_data( self::SHOULD_FIX_CONTENT_STATE, false ); } public function clear_rescan_required() { $this->rescan_required = false; $this->sitepress->set_setting( self::OPTION_NAME, $this->rescan_required, true ); } }