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/model/setting/class-mask-login.php +6 -6 5.4.0 → 6.3.0 View file →
@@ -116,9 +116,9 @@
116 116 *
117 117 * @return string The new login URL. Returns an empty string if the mask URL is empty.
118 118 */
119 119 public function get_new_login_url( $domain = null ) {
120 - if ( empty( $this->mask_url ) ) {
120 + if ( '' === $this->mask_url ) {
121 121 return '';
122 122 }
123 123
124 124 if ( null === $domain ) {
@@ -133,9 +133,9 @@
133 133 *
134 134 * @return string The redirect URL. Returns an empty string if the redirect traffic URL is empty.
135 135 */
136 136 public function get_redirect_url(): string {
137 - if ( empty( $this->redirect_traffic_url ) ) {
137 + if ( '' === $this->redirect_traffic_url ) {
138 138 return '';
139 139 }
140 140
141 141 return 'url' === $this->is_url_or_slug()
@@ -169,9 +169,9 @@
169 169 *
170 170 * @return void
171 171 */
172 172 protected function after_validate(): void {
173 - if ( ! empty( $this->mask_url ) ) {
173 + if ( '' !== $this->mask_url ) {
174 174 /**
175 175 * Filter forbidden slugs.
176 176 *
177 177 * @since 3.8.0
@@ -224,9 +224,9 @@
224 224 * @since 3.12.0
225 225 */
226 226 public function is_mask_url_page_post_exists(): bool {
227 227 $mask_url = ltrim( $this->mask_url, '/\\' );
228 - if ( empty( $mask_url ) ) {
228 + if ( '' === $mask_url ) {
229 229 return false;
230 230 }
231 231
232 232 $found = false;
@@ -267,9 +267,9 @@
267 267 *
268 268 * @return string The name of the Mask Login Area module.
269 269 */
270 270 public static function get_module_name(): string {
271 - return esc_html__( 'Mask Login Area', 'defender-security' );
271 + return esc_html__( 'Hide Login URL', 'defender-security' );
272 272 }
273 273
274 274 /**
275 275 * Check if the permalink structure is empty.
@@ -278,9 +278,9 @@
278 278 */
279 279 public function is_permalink_structure_empty(): bool {
280 280 $permalink_structure = get_option( 'permalink_structure' );
281 281
282 - return empty( $permalink_structure );
282 + return '' === $permalink_structure;
283 283 }
284 284
285 285 /**
286 286 * Retrieves the mask URL based on the permalink structure option.