PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.3.0
Defender Security – Malware Scanner, Login Security & Firewall v6.3.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
← All changes | src/routes.php +35 -51 5.3.1 → 6.3.0 View file →
@@ -43,28 +43,26 @@
43 43 'bulk_action' => 'bulk_action',
44 44 'update_security_reminder' => 'update_security_reminder',
45 45 'update_autogenerate_flag' => 'update_autogenerate_flag',
46 46 'update_enabled_user_enums' => 'update_enabled_user_enums',
47 - 'handle_notice' => 'handle_notice',
48 - 'refuse_notice' => 'refuse_notice',
49 47 'check_xml_rpc' => 'check_xml_rpc',
50 48 ),
51 49 'ip_lockout' => array(
52 - 'update_settings' => 'save_settings',
53 - 'download_geo_db' => 'download_geo_db',
54 - 'import_ips' => 'import_ips',
55 - 'get_listed_ips' => 'get_listed_ips',
56 - 'query_locked_ips' => 'query_locked_ips',
57 - 'ip_action' => 'ip_action',
58 - 'export_ips' => 'export_ips',
59 - 'empty_logs' => 'empty_logs',
60 - 'dashboard_activation' => 'dashboard_activation',
61 - 'import_ua' => 'import_ua',
62 - 'export_ua' => 'export_ua',
63 - 'empty_lockouts' => 'empty_lockouts',
64 - 'verify_blocked_user' => array( 'verify_blocked_user', true ),
65 - 'send_again' => array( 'send_again', true ),
66 - 'agf_unlock_user' => array( 'agf_unlock_user', true ),
50 + 'update_settings' => 'save_settings',
51 + 'download_geo_db' => 'download_geo_db',
52 + 'import_ips' => 'import_ips',
53 + 'get_listed_ips' => 'get_listed_ips',
54 + 'query_locked_ips' => 'query_locked_ips',
55 + 'ip_action' => 'ip_action',
56 + 'export_ips' => 'export_ips',
57 + 'empty_logs' => 'empty_logs',
58 + 'toggle_lockout_modules' => 'toggle_lockout_modules',
59 + 'import_ua' => 'import_ua',
60 + 'export_ua' => 'export_ua',
61 + 'empty_lockouts' => 'empty_lockouts',
62 + 'verify_blocked_user' => array( 'verify_blocked_user', true ),
63 + 'send_again' => array( 'send_again', true ),
64 + 'agf_unlock_user' => array( 'agf_unlock_user', true ),
67 65 ),
68 66 'global_ip_lockout' => array(
69 67 'refresh_global_ip_list' => 'refresh_global_ip_list',
70 68 'redirect_hub_connection' => 'redirect_hub_connection',
@@ -76,18 +74,9 @@
76 74 'status' => 'status',
77 75 'item_action' => 'item_action',
78 76 'update_settings' => 'save_settings',
79 77 'bulk_action' => 'bulk_action',
80 - 'handle_notice' => 'handle_notice',
81 - 'postpone_notice' => 'postpone_notice',
82 - 'refuse_notice' => 'refuse_notice',
83 78 ),
84 - 'audit' => array(
85 - 'update_settings' => 'save_settings',
86 - 'pull_logs' => 'pull_logs',
87 - 'summary' => 'summary',
88 - 'export_as_csv' => 'export_as_csv',
89 - ),
90 79 'notification' => array(
91 80 'get_users' => 'get_users',
92 81 'save_notification' => 'save_notification',
93 82 'unscubscribe' => 'unsubscribe',
@@ -108,41 +97,39 @@
108 97 'settings' => array(
109 98 'update_settings' => 'save_settings',
110 99 'reset_settings' => 'reset_settings',
111 100 ),
112 - 'waf' => array(
113 - 'recheck' => 'recheck',
101 + 'tracking' => array(
102 + 'close_track_modal' => 'close_track_modal',
103 + 'save_track_modal' => 'save_track_modal',
114 104 ),
115 - 'onboard' => array(
116 - 'activating' => 'activating',
117 - 'skip' => 'skip',
118 - 'antibot_reminder' => 'antibot_reminder',
105 + 'hub_connector' => array(
106 + 'activate_dashboard_plugin' => 'activate_dashboard_plugin',
119 107 ),
120 - 'tutorial' => array(
121 - 'hide' => 'hide',
108 + 'rate' => array(
109 + 'postpone_notice' => 'postpone_notice',
110 + 'refuse_notice' => 'refuse_notice',
111 + 'handle_notice' => 'handle_notice',
122 112 ),
123 113 'blocklist_monitor' => array(
124 114 'blacklist_status' => 'blacklist_status',
125 115 'toggle_blacklist_status' => 'toggle_blacklist_status',
126 116 ),
127 - 'tracking' => array(
128 - 'close_track_modal' => 'close_track_modal',
129 - 'save_track_modal' => 'save_track_modal',
117 + 'activity_log' => array(
118 + 'add_notification' => 'add_notification',
119 + 'fetch_notifications' => 'fetch_notifications',
130 120 ),
131 - 'hub_connector' => array(
132 - 'activate_dashboard_plugin' => 'activate_dashboard_plugin',
133 - ),
134 - );
135 -
136 - if ( class_exists( 'WP_Defender\Controller\Quarantine' ) ) {
137 - $routes['quarantine'] = array(
121 + 'quarantine' => array(
138 122 'restore_file' => 'restore_file',
139 123 'quarantine_collection' => 'quarantine_collection',
140 124 'delete_file' => 'delete_file',
141 - );
142 - }
143 -
125 + ),
126 + );
144 127 foreach ( $routes as $module => $info ) {
128 + $controller = Array_Cache::get( $module );
129 + if ( null === $controller ) {
130 + continue;
131 + }
145 132 foreach ( $info as $name => $func ) {
146 133 $nopriv = false;
147 134 if ( is_array( $func ) ) {
148 135 [ $func, $nopriv ] = $func;
@@ -150,12 +137,9 @@
150 137 Route::register_route(
151 138 $name,
152 139 $module,
153 140 $name,
154 - array(
155 - Array_Cache::get( $module ),
156 - $func,
157 - ),
141 + array( $controller, $func ),
158 142 $nopriv
159 143 );
160 144 }
161 145 }