Whippet::serve_wordpress PHP Method

serve_wordpress() public method

Serves a wordpress permalink
public serve_wordpress ( )
    public function serve_wordpress()
    {
        $this->request_type = Whippet::WP;
        // Change to index.php's directory
        chdir($this->options['wp-root']);
        $this->serve_headers();
        // Return some code to be executed by the router at global scope
        return 'require "' . $this->options['wp-root'] . '/index.php";';
    }