Skip to content

Commit bc4c983

Browse files
committed
Explain why in the standard description
Following the suggestion in PR 2687, this commit improves the standard description to explain why these functions must not be used. The phrasing is kept generic instead of mentioning create_function() specifically, since the sniff name suggests it could be extended with more functions in the future.
1 parent e2f5dab commit bc4c983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/Docs/PHP/RestrictedPHPFunctionsStandard.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
>
66
<standard>
77
<![CDATA[
8-
Certain PHP functions must not be used. Use the recommended alternatives instead.
8+
Certain PHP functions must not be used, as they have been deprecated and removed from PHP or pose security risks. Use the recommended alternatives instead.
99
]]>
1010
</standard>
1111
<code_comparison>

0 commit comments

Comments
 (0)