public function display_message()
{
global $wp_query;
$wp_query->is_404 = true;
if ($this->getPrevious()) {
$ex = $this->getPrevious();
} else {
$ex = $this;
}
shortcuts\set_query_flags(array('page', '404'));
shortcuts\display_template('404.html', array('exception_class' => get_class($ex), 'exception' => $ex, 'globals' => $GLOBALS, 'post' => $_POST, 'get' => $_GET, 'server' => $_SERVER));
exit;
}