Skip to content

Enhance cookie handling and inline script conditions#3951

Open
jaygidwitz wants to merge 1 commit into
facebook:mainfrom
jaygidwitz:main
Open

Enhance cookie handling and inline script conditions#3951
jaygidwitz wants to merge 1 commit into
facebook:mainfrom
jaygidwitz:main

Conversation

@jaygidwitz

Copy link
Copy Markdown

adjust previous pull request which didn't work due to the cookie VALUE being different each request

ParamBuilder is generating a new _fbp on every request instead of reusing the existing one.

@meta-cla meta-cla Bot added the CLA Signed label Jun 17, 2026
$cookie_to_set = $param_builder->getCookiesToSet();

if ( ! headers_sent() ) {
if ( ! headers_sent() && ! empty( $cookie_to_set ) ) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is this needed? If $cookie_to_set is empty, the foreach will not work. Will it?

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

2 participants