From d7388b594d6fcb71d3c80d8c6e94768000502cf7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 23 Sep 2023 10:56:24 +0000 Subject: [PATCH] Coding Standards: Improve organization of the PHPCompatibility ruleset. This commit: * Adds section headers to the ruleset file. * Organizes all directives in their respective sections. No functional changes. Props jrf. See #58831. git-svn-id: https://develop.svn.wordpress.org/trunk@56666 602fd350-edb4-49c9-b593-d223f7449a82 --- phpcompat.xml.dist | 42 +++++++++++++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/phpcompat.xml.dist b/phpcompat.xml.dist index ab58eb44c5..e5b5f62e6a 100644 --- a/phpcompat.xml.dist +++ b/phpcompat.xml.dist @@ -2,10 +2,12 @@ Apply PHP compatibility checks to all WordPress Core files - - - - + @@ -28,6 +30,13 @@ + + ./src/ @@ -40,13 +49,13 @@ --> /vendor/* - + /src/wp-content/mu-plugins/* - + /src/wp-content/plugins/* - + /src/wp-content/themes/(?!twenty)* src/wp-includes/sodium_compat/lib/php72compat_const\.php$ + + + + + + + + + /sodium_compat/src/Compat\.php$ @@ -81,4 +108,5 @@ /random_compat/random_bytes_mcrypt\.php$ +