summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--phpcompat.xml.dist3
-rw-r--r--phpcs.xml.dist3
2 files changed, 6 insertions, 0 deletions
diff --git a/phpcompat.xml.dist b/phpcompat.xml.dist
index 94c20742ad..d06b8e2a99 100644
--- a/phpcompat.xml.dist
+++ b/phpcompat.xml.dist
@@ -49,6 +49,9 @@
<!-- Exclude themes except the twenty* themes. -->
<exclude-pattern>/src/wp-content/themes/(?!twenty)*</exclude-pattern>
+ <!-- Exclude translation files. -->
+ <exclude-pattern>/src/wp-content/languages/*</exclude-pattern>
+
<!--
PHPCompatibilityParagonieSodiumCompat prevents false positives in `sodium_compat`.
However, because these files are included in a non-standard path, false positives are triggered in WordPress Core.
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 04731abf64..ece1c82386 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -106,6 +106,9 @@
<!-- Themes except the twenty* themes. -->
<exclude-pattern>/src/wp-content/themes/(?!twenty)*</exclude-pattern>
+ <!-- Translation files. -->
+ <exclude-pattern>/src/wp-content/languages/*</exclude-pattern>
+
<!--
#############################################################################