Skip to content

Commit

Permalink
Ignoring the WP linter rule about using the WP HTTP request functions…
Browse files Browse the repository at this point in the history
… because it is silly
  • Loading branch information
aldavigdis committed Mar 22, 2024
1 parent 03eb4b2 commit 1164479
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@
and heresy.
-->
<exclude name="WordPress.WP.EnqueuedResourceParameters.NotInFooter" />

<!--
It's the year 2024 and we may not have flying cars, but we can assume
that every web host has libcurl installed by now. What the WP wrapper
functions do is falling back on the PHP filesystem functions if curl is
not found and we don't need such negativity in our lives.
-->
<exclude name="WordPress.WP.AlternativeFunctions.curl_curl_init" />
<exclude name="WordPress.WP.AlternativeFunctions.curl_curl_setopt" />
<exclude name="WordPress.WP.AlternativeFunctions.curl_curl_exec" />
<exclude name="WordPress.WP.AlternativeFunctions.curl_curl_getinfo" />
<exclude name="WordPress.WP.AlternativeFunctions.curl_curl_error" />
<exclude name="WordPress.WP.AlternativeFunctions.curl_curl_close" />
</rule>

<!--
Expand Down

0 comments on commit 1164479

Please sign in to comment.