/** * converts a Request to a Response * * @param EE_Request $request * @param EE_Response $response * @return EE_Response */ public function handle_request(EE_Request $request, EE_Response $response) { $this->_request = $request; $this->_response = $response; global $pagenow; if (in_array($pagenow, array('wp-login.php', 'wp-register.php')) && !$request->get('ee_load_on_login')) { $this->_response->terminate_request(); } $this->_response = $this->process_request_stack($this->_request, $this->_response); return $this->_response; }