| @@ -69,13 +69,9 @@ | ||
| 69 | 69 | |
| 70 | 70 | add_action('wp_enqueue_scripts', '\CookieAdmin\Enduser::enqueue_scripts'); |
| 71 | 71 | |
| 72 | 72 | // Insert Cookie blocker in the head. |
| 73 | - add_action('send_headers', '\CookieAdmin\Enduser::cookieadmin_block_cookie_init_php', 100); | |
| 74 | - add_filter( 'rest_pre_serve_request', function ( $served ) { | |
| 75 | - \CookieAdmin\Enduser::cookieadmin_block_cookie_init_php(); | |
| 76 | - return $served; | |
| 77 | - }, 999 ); | |
| 73 | + //add_action('send_headers', '\CookieAdmin\Enduser::cookieadmin_block_cookie_init_php', 100); | |
| 78 | 74 | // add_action('init', '\CookieAdmin\Enduser::cookieadmin_block_cookie_head_js', 0); |
| 79 | 75 | |
| 80 | 76 | //add Cookie Banner to user page |
| 81 | 77 | if(!cookieadmin_is_editor_mode()){ |
| @@ -140,12 +136,8 @@ | ||
| 140 | 136 | if(isset($_GET['elementor-preview']) || (isset($_GET['action']) && $_GET['action'] == 'elementor')){ |
| 141 | 137 | return true; |
| 142 | 138 | } |
| 143 | 139 | |
| 144 | - if(isset($_GET['et_fb']) && ($_GET['et_fb'] == 1)){ | |
| 145 | - return true; | |
| 146 | - } | |
| 147 | - | |
| 148 | 140 | return false; |
| 149 | 141 | |
| 150 | 142 | } |
| 151 | 143 | |
| @@ -245,10 +237,8 @@ | ||
| 245 | 237 | 'logo_svg' => cookieadmin_logo_svg(), |
| 246 | 238 | 'plugin_url' => esc_url(COOKIEADMIN_PLUGIN_URL), |
| 247 | 239 | 'powered_by' => __('Powered by', 'cookieadmin'), |
| 248 | 240 | 'reconsent' => __('Re-consent', 'cookieadmin'), |
| 249 | - 'close' => __('Close', 'cookieadmin'), | |
| 250 | - 'cookie_consent' => __('Cookie Consent', 'cookieadmin'), | |
| 251 | 241 | 'cookie_preferences' => __('Cookie Preferences', 'cookieadmin'), |
| 252 | 242 | 'remark_standard' => __('Always Active', 'cookieadmin'), |
| 253 | 243 | 'remark' => __('Remark', 'cookieadmin'), |
| 254 | 244 | 'none' => __('None', 'cookieadmin'), |
| @@ -493,11 +483,8 @@ | ||
| 493 | 483 | 'placeholder' => true, |
| 494 | 484 | ); |
| 495 | 485 | |
| 496 | 486 | $allowed_tags['defs'] = array(); |
| 497 | - | |
| 498 | - // aria-modal is not part of the wp_kses post-context globals | |
| 499 | - $allowed_tags['div']['aria-modal'] = true; | |
| 500 | 487 | |
| 501 | 488 | $allowed_tags['a'] = array( |
| 502 | 489 | 'href' => true, |
| 503 | 490 | 'target' => true, |