Skip to content

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