PluginProbe
Advanced Access Manager – Access Governance for WordPress / 7.1.3
Advanced Access Manager – Access Governance for WordPress v7.1.3
7.1.4 7.1.2 7.1.3 6.8.4 6.8.5 6.9.0 6.9.1 6.9.10 6.9.11 6.9.12 6.9.13 6.9.14 6.9.15 6.9.16 6.9.17 6.9.18 6.9.19 6.9.2 6.9.20 6.9.21 6.9.22 6.9.23 6.9.24 6.9.25 6.9.26 All 210 releases
advanced-access-manager / index.php
index.php
27 lines 566 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace AAM;
4
5 // Let's determine if core WP load file reachable
6 $wp_load_fl = realpath(dirname(__DIR__, 3) . '/wp-load.php');
7
8 if (is_string($wp_load_fl) && file_exists($wp_load_fl)) {
9 require_once $wp_load_fl;
10
11 global $wp_query;
12
13 if (is_a($wp_query, \WP_Query::class)) {
14 $wp_query->set_404();
15 }
16
17 status_header(404);
18 nocache_headers();
19
20 $not_found_tmpl = get_404_template();
21
22 if (!empty($not_found_tmpl) && file_exists($not_found_tmpl)) {
23 include $not_found_tmpl;
24 }
25 } else {
26 http_response_code(404);
27 }