wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/compat.php › WordPress File
Functions16
› WordPress implementation for PHP functions either missing from older PHP versions or not included by default.
Function | Short description |
---|---|
array_replace_recursive | PHP-agnostic version of {@link array_replace_recursive()}. |
hash_equals | Timing attack safe string comparison |
hash_hmac | Compat function to mimic hash_hmac(). |
is_countable | Polyfill for is_countable() function added in PHP 7.3. |
is_iterable | Polyfill for is_iterable() function added in PHP 7.1. |
json_decode | - |
json_encode | - |
json_last_error_msg | Retrieves the error string of the last json_encode() or json_decode() call. |
mb_strlen | Compat function to mimic mb_strlen(). |
mb_substr | Compat function to mimic mb_substr(). |
_ | - |
_hash_hmac | Internal compat function to mimic hash_hmac(). |
_json_decode_object_helper | - |
_mb_strlen | Internal compat function to mimic mb_strlen(). |
_mb_substr | Internal compat function to mimic mb_substr(). |
_wp_can_use_pcre_u | Returns whether PCRE/u (PCRE_UTF8 modifier) is available for use. |