Skip to content

Commit

Permalink
Local file description
Browse files Browse the repository at this point in the history
Improve the description of file_get_contents() to talk about local and remote files.
  • Loading branch information
sboisvert authored Jul 18, 2018
1 parent 2160641 commit c74e886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WordPress-VIP-Go/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

<rule ref="WordPressVIPMinimum.VIP.RestrictedFunctions.file_get_contents_file_get_contents">
<type>warning</type>
<message>%s() is uncached. If this is being used to query a remote file please use wpcom_vip_file_get_contents() instead.</message>
<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>
</rule>

<rule ref="WordPressVIPMinimum.VIP.RestrictedFunctions.attachment_url_to_postid_attachment_url_to_postid">
Expand Down

0 comments on commit c74e886

Please sign in to comment.