Skip to content

Commit 2ce09b7

Browse files
committed
Ruleset: Remove extraneous incorrect rule
Looks like 05a2f91#diff-0668f43b46ab1d5d149e12c1529486b8R107 changed the order of the fopen and fclose, and somewhow this incorrect rule (there is no violation called `WordPress.WP.AlternativeFunctions.file_system_read`) got left behind.
1 parent 0738e47 commit 2ce09b7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

WordPress-VIP-Go/ruleset.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@
104104
-->
105105
<rule ref="WordPress.Security.EscapeOutput.OutputNotEscaped"/>
106106
<!-- Should fix all of them but it doesn't need a manual review -->
107-
<rule ref="WordPress.WP.AlternativeFunctions.file_system_read">
108-
<type>warning</type>
109-
<message>File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as %s(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/</message>
110-
</rule>
111107
<rule ref="WordPress.WP.AlternativeFunctions.file_system_read_fopen">
112108
<type>warning</type>
113109
<message>File system operations only work on the `/tmp/` and `wp-content/uploads/` directories. To avoid unexpected results, please use helper functions like `get_temp_dir()` or `wp_get_upload_dir()` to get the proper directory path when using functions such as %s(). For more details, please see: https://wpvip.com/documentation/vip-go/writing-files-on-vip-go/</message>

0 commit comments

Comments
 (0)