PluginProbe
Redirection / 2.3.6
Redirection v2.3.6
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
redirection / actions / error.php

error.php in Redirection 2.3.6, at actions/error.php

27 lines 503 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class Error_Action extends Red_Action {
4 function can_change_code() {
5 return true;
6 }
7
8 function can_perform_action() {
9 return false;
10 }
11
12 function action_codes() {
13 return array (
14 404 => get_status_header_desc( 404 ),
15 410 => get_status_header_desc( 410 )
16 );
17 }
18
19 function process_after( $code, $target ) {
20 global $wp_query;
21 $wp_query->is_404 = true;
22
23 // Page comments plugin interferes with this
24 remove_filter( 'template_redirect', 'paged_comments_alter_source', 12 );
25 }
26 }
27