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/controller/class-session-protection.php +0 -23 5.9.0 → 6.3.0 View file →
@@ -39,9 +39,8 @@
39 39 */
40 40 public function __construct() {
41 41 $this->model = wd_di()->get( Settings::class );
42 42 $this->service = wd_di()->get( Service::class );
43 - add_filter( 'wp_defender_advanced_tools_data', array( $this, 'script_data' ) );
44 43 $this->register_routes();
45 44 if ( $this->model->enabled ) {
46 45 add_action( 'init', array( $this->service, 'handle_session_timeout' ) );
47 46 add_action( 'wp_enqueue_scripts', array( $this->service, 'enqueue_idle_scripts' ) );
@@ -60,21 +59,8 @@
60 59 }
61 60 }
62 61
63 62 /**
64 - * Provide data to the frontend via localized script.
65 - *
66 - * @param array $data Data collection is ready to passed.
67 - *
68 - * @return array Modified data array with added this controller data.
69 - */
70 - public function script_data( array $data ): array {
71 - $data['session_protection'] = $this->data_frontend();
72 -
73 - return $data;
74 - }
75 -
76 - /**
77 63 * All the variables that we will show on frontend, both in the main page, or dashboard widget.
78 64 *
79 65 * @return array
80 66 */
@@ -191,15 +177,6 @@
191 177 public function export_strings() {
192 178 return array(
193 179 $this->model->is_active() ? esc_html__( 'Active', 'defender-security' ) : esc_html__( 'Inactive', 'defender-security' ),
194 180 );
195 - }
196 -
197 - /**
198 - * Provides data for the dashboard widget.
199 - *
200 - * @return array An array of dashboard widget data.
201 - */
202 - public function dashboard_widget(): array {
203 - return array( 'model' => $this->model->export() );
204 181 }
205 182 }