| @@ -39,13 +39,12 @@ | ||
| 39 | 39 | * @param boolean $protection_is_disabled Whether protection is disabled. |
| 40 | 40 | * @return boolean |
| 41 | 41 | */ |
| 42 | 42 | public function protection_is_disabled( $protection_is_disabled ) { |
| 43 | - // phpcs:disable WordPress.Security.NonceVerification.Recommended -- Read-only builder-state check. | |
| 44 | - if ( isset( $_GET['et_fb'] ) && is_string( $_GET['et_fb'] ) && '' !== sanitize_text_field( wp_unslash( $_GET['et_fb'] ) ) ) { | |
| 43 | + // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 44 | + if ( isset( $_GET['et_fb'] ) && ! empty( $_GET['et_fb'] ) ) { | |
| 45 | 45 | return true; |
| 46 | 46 | } |
| 47 | - // phpcs:enable WordPress.Security.NonceVerification.Recommended | |
| 48 | 47 | |
| 49 | 48 | return $protection_is_disabled; |
| 50 | 49 | } |
| 51 | 50 | } |