| @@ -10,15 +10,14 @@ | ||
| 10 | 10 | add_filter( 'template_include', array( $this, 'template_include' ) ); |
| 11 | 11 | add_filter( 'pre_handle_404', array( $this, 'pre_handle_404' ) ); |
| 12 | 12 | add_action( 'wp', array( $this, 'wp' ) ); |
| 13 | 13 | |
| 14 | - return true; | |
| 14 | + return false; | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function wp() { |
| 18 | 18 | status_header( $this->code ); |
| 19 | 19 | nocache_headers(); |
| 20 | - header( 'X-Redirect-Agent: redirection' ); | |
| 21 | 20 | } |
| 22 | 21 | |
| 23 | 22 | public function pre_handle_404() { |
| 24 | 23 | global $wp_query; |
| @@ -23,9 +22,9 @@ | ||
| 23 | 22 | public function pre_handle_404() { |
| 24 | 23 | global $wp_query; |
| 25 | 24 | |
| 26 | 25 | // Page comments plugin interferes with this |
| 27 | - $wp_query->posts = array(); | |
| 26 | + $wp_query->posts = false; | |
| 28 | 27 | return false; |
| 29 | 28 | } |
| 30 | 29 | |
| 31 | 30 | public function template_include() { |