| @@ -201,9 +201,9 @@ | ||
| 201 | 201 | case 'completed_scans': |
| 202 | 202 | default: |
| 203 | 203 | $text = '<p class="notice-header">' . sprintf( |
| 204 | 204 | /* translators: %d - Number of completed scans. */ |
| 205 | - esc_html__( '🎉 Nice work — %d scans completed!', 'defender-security' ), | |
| 205 | + esc_html__( 'Nice work — %d scans completed!', 'defender-security' ), | |
| 206 | 206 | self::NUMBER_COMPLETED_SCANS |
| 207 | 207 | ); |
| 208 | 208 | $text .= '</p><p class="notice-body">'; |
| 209 | 209 | $text .= esc_html__( |
| @@ -241,9 +241,9 @@ | ||
| 241 | 241 | |
| 242 | 242 | case 'ua_lockouts': |
| 243 | 243 | $text = '<p class="notice-header">' . sprintf( |
| 244 | 244 | /* translators: %d - Number of UA lockouts. */ |
| 245 | - esc_html__( '🤖 Defender has blocked %d malicious bots!', 'defender-security' ), | |
| 245 | + esc_html__( 'Defender has blocked %d malicious bots!', 'defender-security' ), | |
| 246 | 246 | self::NUMBER_UA_LOCKOUTS |
| 247 | 247 | ); |
| 248 | 248 | $text .= '</p><p class="notice-body">'; |
| 249 | 249 | $text .= sprintf( |
| @@ -259,9 +259,9 @@ | ||
| 259 | 259 | |
| 260 | 260 | case 'ip_lockouts': |
| 261 | 261 | $text = '<p class="notice-header">' . sprintf( |
| 262 | 262 | /* translators: %d - Number of IP lockouts. */ |
| 263 | - esc_html__( '🚫 Defender has blocked %d suspicious IPs!', 'defender-security' ), | |
| 263 | + esc_html__( 'Defender has blocked %d suspicious IPs!', 'defender-security' ), | |
| 264 | 264 | self::NUMBER_IP_LOCKOUTS |
| 265 | 265 | ); |
| 266 | 266 | $text .= '</p><p class="notice-body">'; |
| 267 | 267 | $text .= sprintf( |
| @@ -499,9 +499,9 @@ | ||
| 499 | 499 | * |
| 500 | 500 | * @return bool |
| 501 | 501 | */ |
| 502 | 502 | protected static function is_required_page(): bool { |
| 503 | - $arr = array( | |
| 503 | + $arr = array( | |
| 504 | 504 | 'wdf-hardener', |
| 505 | 505 | 'wdf-scan', |
| 506 | 506 | 'wdf-logging', |
| 507 | 507 | 'wdf-ip-lockout', |
| @@ -508,13 +508,11 @@ | ||
| 508 | 508 | 'wdf-2fa', |
| 509 | 509 | 'wdf-advanced-tools', |
| 510 | 510 | 'wdf-notification', |
| 511 | 511 | 'wdf-setting', |
| 512 | + // Dashboard and Setup Wizard have the same page slug. | |
| 513 | + 'wp-defender', | |
| 512 | 514 | ); |
| 513 | - $_this = new self(); | |
| 514 | - if ( ! $_this->is_onboarding() ) { | |
| 515 | - $arr[] = 'wp-defender'; | |
| 516 | - } | |
| 517 | 515 | |
| 518 | 516 | return in_array( defender_get_current_page(), $arr, true ); |
| 519 | 517 | } |
| 520 | 518 | } |