Skip to content

Commit

Permalink
Coding Standards: Replace the old wp-db.php filename in `phpcompat.…
Browse files Browse the repository at this point in the history
…xml.dist`.

This ensures the correct file is allowlisted for use of `mysql_` extension in PHP < 7.0.

Follow-up to [53749].

See #56268, #55647.

git-svn-id: https://develop.svn.wordpress.org/trunk@53750 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Jul 21, 2022
1 parent fdb6e13 commit 0a9e88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpcompat.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@

<!-- Whitelist the WP DB Class for use of `mysql_` extension in PHP < 7.0. -->
<rule ref="PHPCompatibility.Extensions.RemovedExtensions.mysql_DeprecatedRemoved">
<exclude-pattern>/src/wp-includes/wp-db\.php</exclude-pattern>
<exclude-pattern>/src/wp-includes/class-wpdb\.php</exclude-pattern>
</rule>
</ruleset>

0 comments on commit 0a9e88b

Please sign in to comment.