| @@ -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. |