|
13 | 13 | --> |
14 | 14 |
|
15 | 15 | <rule ref="PHPCompatibility"> |
16 | | - <!-- Contained in /wp-includes/compat.php. --> |
| 16 | + <!-- |
| 17 | + Contained in /wp-includes/compat.php. |
| 18 | +
|
| 19 | + History of the polyfills in WP: |
| 20 | + * hash_hmac(): since WP 3.2.0. |
| 21 | + * json_encode() and json_decode(): since unknown. |
| 22 | + * hash_equals(): since WP 3.9.2. |
| 23 | + * JSON_PRETTY_PRINT: since WP 4.1.0. |
| 24 | + * json_last_error_msg(): since WP 4.4.0. |
| 25 | + * JsonSerializable: since WP 4.4.0. |
| 26 | + * array_replace_recursive(): since WP 4.5.3 up to 5.2.x. The polyfill was removed in WP 5.3. |
| 27 | + * is_iterable(): since WP 4.9.6 |
| 28 | + * is_countable(): since WP 4.9.6 |
| 29 | + --> |
17 | 30 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.hash_hmacFound"/> |
18 | 31 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.json_encodeFound"/> |
19 | 32 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.json_decodeFound"/> |
|
25 | 38 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.is_iterableFound"/> |
26 | 39 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.is_countableFound"/> |
27 | 40 |
|
28 | | - <!-- Contained in /wp-includes/spl-autoload-compat.php. --> |
| 41 | + <!-- |
| 42 | + Contained in /wp-includes/spl-autoload-compat.php. |
| 43 | +
|
| 44 | + History of the polyfills in WP: |
| 45 | + * spl_autoload_register(), spl_autoload_unregister() and spl_autoload_functions() were |
| 46 | + introduced in WP 4.6.0 and available up to WP 5.2.x. The polyfills were removed in WP 5.3. |
| 47 | + --> |
29 | 48 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.spl_autoload_registerFound"/> |
30 | 49 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.spl_autoload_unregisterFound"/> |
31 | 50 | <exclude name="PHPCompatibility.FunctionUse.NewFunctions.spl_autoload_functionsFound"/> |
|
0 commit comments