Skip to content

Tkgdpr 13 blocked cookies prompt#267

Open
moutushi82 wants to merge 5 commits intodevelopfrom
TKGDPR-13-Blocked-Cookies-Prompt
Open

Tkgdpr 13 blocked cookies prompt#267
moutushi82 wants to merge 5 commits intodevelopfrom
TKGDPR-13-Blocked-Cookies-Prompt

Conversation

@moutushi82
Copy link
Contributor

No description provided.

@moutushi82 moutushi82 requested a review from fclaussen May 22, 2020 18:01
Comment on lines +291 to +301
if ( empty ( $_COOKIE ) ) {
wp_send_json_error(
array(
'title' => esc_html__( 'Warning!', 'gdpr' ),
'content' => esc_html__( 'Your browser is set to block cookies therefore we cannot record your acceptance. Please adjust your browser’s settings and try again.', 'gdpr' ),
)
);
} else {
wp_send_json_success();
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to move the entire cookie logic to a JS-based approach so caching plugins do not interfere with anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants