Skip to content

Commit 3dcdd85

Browse files
rodrigoprimojrfnl
andauthored
Apply suggestions from code review
Co-authored-by: Juliette <663378+jrfnl@users.noreply.github.com>
1 parent bc4c983 commit 3dcdd85

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

WordPress/Docs/PHP/RestrictedPHPFunctionsStandard.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55
>
66
<standard>
77
<![CDATA[
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.
8+
Certain PHP functions must not be used, as they pose security risks. Use the recommended alternatives instead.
99
]]>
1010
</standard>
1111
<code_comparison>
12-
<code title="Valid: Using an anonymous function.">
12+
<code title="Valid: Using an anonymous function (closure).">
1313
<![CDATA[
14-
$function = <em>function ()</em> {
14+
$function = <em>function () {
1515
return foo( 'bar' );
16-
};
16+
}</em>;
1717
]]>
1818
</code>
1919
<code title="Invalid: Using create_function().">
2020
<![CDATA[
21-
$function = <em>create_function</em>(
21+
$function = <em>create_function(
2222
'',
2323
'return foo( "bar" );'
24-
);
24+
)</em>;
2525
]]>
2626
</code>
2727
</code_comparison>

0 commit comments

Comments
 (0)