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/view/ip-lockout/locked.php +14 -16 5.7.0 → 6.3.0 View file →
@@ -140,9 +140,9 @@
140 140 background-position: center;
141 141 }
142 142
143 143 </style>
144 - <?php if ( ! empty( $is_unlock_me_agf ) || ! empty( $is_unlock_me ) ) { ?>
144 + <?php if ( true === $is_unlock_me_agf || true === $is_unlock_me ) { ?>
145 145 <link rel="stylesheet" href="<?php echo esc_url( defender_asset_url( '/assets/css/unlock.css' ) ); ?>">
146 146 <script src="<?php echo esc_url_raw( includes_url( '/js/jquery/jquery.min.js' ) ); ?>"></script>
147 147 <?php } ?>
148 148 </head>
@@ -152,20 +152,20 @@
152 152 <div class="container">
153 153 <?php
154 154 if (
155 155 ( false === $info['hide_branding'] ) ||
156 - ( true === $info['hide_branding'] && ! empty( $info['hero_image'] ) )
156 + ( true === $info['hide_branding'] && isset( $info['hero_image'] ) && '' !== $info['hero_image'] )
157 157 ) {
158 158 echo '<div class="image"></div>';
159 159 }
160 160 ?>
161 161 <h1 class="locked_page_header"><?php esc_html_e( 'Access Denied', 'defender-security' ); ?></h1>
162 - <p class="message" <?php echo ! empty( $hide_btn_agf ) ? 'style="margin-top: -1.5em; margin-bottom: 3em"' : ''; ?>>
162 + <p class="message" <?php echo true === $hide_btn_agf ? 'style="margin-top: -1.5em; margin-bottom: 3em"' : ''; ?>>
163 163 <?php
164 164 echo wp_kses_post( $message );
165 - echo ! empty( $hide_btn_agf ) ? '' : '<br/>';
166 - if ( ! empty( $is_unlock_me_agf ) ) {
167 - if ( empty( $hide_btn_agf ) ) {
165 + echo true === $hide_btn_agf ? '' : '<br/>';
166 + if ( true === $is_unlock_me_agf ) {
167 + if ( true !== $hide_btn_agf ) {
168 168 printf(
169 169 /* translators: 1. Module name. 2. Button title. */
170 170 esc_html__(
171 171 'Your IP appeared in the %s service. Click on the %s button below to unlock yourself.',
@@ -183,9 +183,9 @@
183 183 ),
184 184 '<strong>' . $module_name_agf . '</strong>'
185 185 );
186 186 }
187 - } else if ( ! empty( $is_unlock_me ) ) {
187 + } elseif ( true === $is_unlock_me ) {
188 188 printf(
189 189 /* translators: %s: Button title. */
190 190 esc_html__(
191 191 'If you are a site admin, click on the %s button below to unlock yourself.',
@@ -195,10 +195,10 @@
195 195 );
196 196 }
197 197 ?>
198 198 </p>
199 - <?php if ( ! empty( $is_unlock_me_agf ) ) {
200 - if ( empty( $hide_btn_agf ) ) { ?>
199 + <?php if ( true === $is_unlock_me_agf ) {
200 + if ( true !== $hide_btn_agf ) { ?>
201 201 <div class="unlock_wrap sui-wrap">
202 202 <!--Step#1-->
203 203 <form id="wd_agf_unlock_me_form">
204 204 <input type="checkbox" id="wd_agf_unlock_me_checkbox"
@@ -247,9 +247,9 @@
247 247 </p>
248 248 </div>
249 249 </div>
250 250 <?php }
251 - } else if ( ! empty( $is_unlock_me ) ) { ?>
251 + } elseif ( true === $is_unlock_me ) { ?>
252 252 <div class="unlock_wrap sui-wrap">
253 253 <!--Step#1-->
254 254 <button type="button" id="wd_step_show_toggle"
255 255 class="sui-button sui-button-lg sui-button-blue"
@@ -305,9 +305,9 @@
305 305 </div>
306 306
307 307 </div>
308 308 <?php } ?>
309 - <?php if ( ! empty( $remaining_time ) && is_int( $remaining_time ) && $remaining_time > 0 ) { ?>
309 + <?php if ( is_int( $remaining_time ) && $remaining_time > 0 ) { ?>
310 310 <p class="message"><?php esc_html_e( 'You will be able to attempt to access again in:', 'defender-security' ); ?></p>
311 311 <p id="countdown-time"><span class="sui-icon-stopwatch" aria-hidden="true"></span><span
312 312 id="remaining-time"></span></p>
313 313 <?php } ?>
@@ -323,9 +323,9 @@
323 323 <?php
324 324 }
325 325 ?>
326 326 </div>
327 -<?php if ( ! empty( $remaining_time ) && is_int( $remaining_time ) && $remaining_time > 0 ) { ?>
327 +<?php if ( is_int( $remaining_time ) && $remaining_time > 0 ) { ?>
328 328 <script>
329 329 function CountDownTimer(duration, granularity) {
330 330 this.duration = duration;
331 331 this.granularity = granularity || 1000;
@@ -417,9 +417,9 @@
417 417 }
418 418 </script>
419 419 <?php } ?>
420 420
421 -<?php if ( ! empty( $is_unlock_me_agf ) && empty( $hide_btn_agf ) ) { ?>
421 +<?php if ( true === $is_unlock_me_agf && true !== $hide_btn_agf ) { ?>
422 422 <script>
423 423 let altcha = <?php echo json_encode( $altcha ); ?>;
424 424
425 425 jQuery(function ($) {
@@ -473,12 +473,10 @@
473 473 window.location.reload(true);
474 474 });
475 475 });
476 476 </script>
477 - <script src="<?php echo plugins_url( 'assets/js/vendor.js', WP_DEFENDER_FILE ); ?>"></script>
478 - <script src="<?php echo plugins_url( 'assets/js/manifest.js', WP_DEFENDER_FILE ); ?>"></script>
479 477 <script src="<?php echo plugins_url( 'assets/js/altcha.js', WP_DEFENDER_FILE ); ?>"></script>
480 -<?php } else if ( ! empty( $is_unlock_me ) ) { ?>
478 +<?php } elseif ( true === $is_unlock_me ) { ?>
481 479 <script>
482 480 jQuery(function ($) {
483 481 //Verify user.
484 482 function verifyUser(that) {