Skip to content

Commit c74e886

Browse files
authored
Local file description
Improve the description of file_get_contents() to talk about local and remote files.
1 parent 2160641 commit c74e886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress-VIP-Go/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
<rule ref="WordPressVIPMinimum.VIP.RestrictedFunctions.file_get_contents_file_get_contents">
7777
<type>warning</type>
78-
<message>%s() is uncached. If this is being used to query a remote file please use wpcom_vip_file_get_contents() instead.</message>
78+
<message>%s() is uncached. If this is being used to query a remote file please use wpcom_vip_file_get_contents(). If this is used to query for a local file please use WP_Filesystem methods instead.</message>
7979
</rule>
8080

8181
<rule ref="WordPressVIPMinimum.VIP.RestrictedFunctions.attachment_url_to_postid_attachment_url_to_postid">

0 commit comments

Comments
 (0)