PluginProbe
Redirection / 2.9
Redirection v2.9
5.10.0 5.9.0 5.8.1 5.8.0 3.7.2 3.7.3 4.0 4.0.1 4.1 4.1.1 4.2 4.2.1 4.2.2 4.2.3 4.3 4.3.1 4.3.2 4.3.3 4.4 4.4.1 4.4.2 4.5 4.5.1 4.6.2 4.7.1 All 130 releases
← All changes | actions/error.php +2 -3 4.02.9 View file →
@@ -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() {