Skip to content

Prevent PHP notice by validating and sanitizing GET parameter#232

Open
divyadhiman22 wants to merge 1 commit intoWordPress:trunkfrom
divyadhiman22:fix-php-validation
Open

Prevent PHP notice by validating and sanitizing GET parameter#232
divyadhiman22 wants to merge 1 commit intoWordPress:trunkfrom
divyadhiman22:fix-php-validation

Conversation

@divyadhiman22
Copy link

What does this PR do?

This PR adds validation and sanitization for a GET parameter to prevent
PHP notices and improve security.

Why is this change needed?

Accessing undefined indexes can cause PHP warnings and unexpected behavior.

How was this tested?

Tested locally using WordPress and verified editor switching works correctly.

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