Skip to content

Commit e5ecb4f

Browse files
committed
Remove code comparisons and add example functions to standard descriptions
1 parent 0ea73de commit e5ecb4f

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

WordPress/Docs/PHP/DevelopmentFunctionsStandard.xml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,12 @@
55
>
66
<standard>
77
<![CDATA[
8-
Debug functions should not be used in production code.
8+
Debug functions, like var_dump() and print_r(), should not be used in production code.
99
]]>
1010
</standard>
11-
<code_comparison>
12-
<code title="Valid: Not using debug functions.">
13-
<![CDATA[
14-
// Code without debug functions.
15-
]]>
16-
</code>
17-
<code title="Invalid: Calling a debug function.">
18-
<![CDATA[
19-
<em>var_dump( $bar );</em>
20-
]]>
21-
</code>
22-
</code_comparison>
2311
<standard>
2412
<![CDATA[
25-
Functions that can lead to full path disclosure should not be used.
13+
Functions that can lead to full path disclosure, like phpinfo(), should not be used.
2614
]]>
2715
</standard>
28-
<code_comparison>
29-
<code title="Valid: Not using functions that can lead to full path disclosure.">
30-
<![CDATA[
31-
// No full path disclosure functions.
32-
]]>
33-
</code>
34-
<code title="Invalid: Using a function that can lead to full path disclosure.">
35-
<![CDATA[
36-
<em>phpinfo();</em>
37-
]]>
38-
</code>
39-
</code_comparison>
4016
</documentation>

0 commit comments

Comments
 (0)