close
Skip to content

PHP/RestrictedPHPFunctions: update error message to focus on security risk#2703

Closed
rodrigoprimo wants to merge 1 commit intoWordPress:developfrom
rodrigoprimo:update-restricted-php-functions-message
Closed

PHP/RestrictedPHPFunctions: update error message to focus on security risk#2703
rodrigoprimo wants to merge 1 commit intoWordPress:developfrom
rodrigoprimo:update-restricted-php-functions-message

Conversation

@rodrigoprimo
Copy link
Collaborator

Description

Updates the error message for the create_function group to focus on the security risk instead of referencing PHP deprecation/removal, as that is PHPCompatibility's domain.

This was suggested by @jrfnl in #2693 (review).

@jrfnl, is this more or less what you had in mind, or do you prefer a different approach?

Suggested changelog entry

WordPress.PHP.RestrictedPHPFunctions: improved the clarity of the error message for the error triggered when create_function is found.

Related issues/external references

#2693 (review)

… risk

Remove the reference to create_function() being deprecated/removed
from PHP, as that is PHPCompatibility's domain, and instead focus on
the security risk it poses.
@rodrigoprimo
Copy link
Collaborator Author

Closing as I missed #2702 before creating this PR.

@rodrigoprimo rodrigoprimo deleted the update-restricted-php-functions-message branch February 23, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant