PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.1
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.1
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
← All changes | classes/Controllers/Compatibility/Divi.php +2 -3 trunk2.6.1 View file →
@@ -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 }