Parsed: 118828

<?php

// If gettext isn't available.
if ( ! function_exists( '_' ) ) {
/* function _() – WordPress implementation for PHP functions either missing from older PHP versions or not included by default. */
}

/* function _wp_can_use_pcre_u() – Returns whether PCRE/u (PCRE_UTF8 modifier) is available for use. */

if ( ! function_exists( 'mb_substr' ) ) :
/* function mb_substr() – Compat function to mimic mb_substr(). */
endif;

/* function _mb_substr() – Internal compat function to mimic mb_substr(). */

if ( ! function_exists( 'mb_strlen' ) ) :
/* function mb_strlen() – Compat function to mimic mb_strlen(). */
endif;

/* function _mb_strlen() – Internal compat function to mimic mb_strlen(). */

if ( ! function_exists( 'hash_hmac' ) ) :
/* function hash_hmac() – Compat function to mimic hash_hmac(). */
endif;

/* function _hash_hmac() – Internal compat function to mimic hash_hmac(). */

if ( ! function_exists( 'hash_equals' ) ) :
/* function hash_equals() – Timing attack safe string comparison. */
endif;

// random_int() was introduced in PHP 7.0.
if ( ! function_exists( 'random_int' ) ) {
  require ABSPATH . WPINC . '/random_compat/random.php';
}
// sodium_crypto_box() was introduced in PHP 7.2.
if ( ! function_exists( 'sodium_crypto_box' ) ) {
  require ABSPATH . WPINC . '/sodium_compat/autoload.php';
}

if ( ! function_exists( 'is_countable' ) ) {
/* function is_countable() – Polyfill for is_countable() function added in PHP 7.3. */
}

if ( ! function_exists( 'is_iterable' ) ) {
/* function is_iterable() – Polyfill for is_iterable() function added in PHP 7.1. */
}

if ( ! function_exists( 'array_key_first' ) ) {
/* function array_key_first() – Polyfill for array_key_first() function added in PHP 7.3. */
}

if ( ! function_exists( 'array_key_last' ) ) {
/* function array_key_last() – Polyfill for `array_key_last()` function added in PHP 7.3. */
}

if ( ! function_exists( 'str_contains' ) ) {
/* function str_contains() – Polyfill for `str_contains()` function added in PHP 8.0. */
}

if ( ! function_exists( 'str_starts_with' ) ) {
/* function str_starts_with() – Polyfill for `str_starts_with()` function added in PHP 8.0. */
}

if ( ! function_exists( 'str_ends_with' ) ) {
/* function str_ends_with() – Polyfill for `str_ends_with()` function added in PHP 8.0. */
}

// IMAGETYPE_WEBP constant is only defined in PHP 7.1 or later.
if ( ! defined( 'IMAGETYPE_WEBP' ) ) {
  define( 'IMAGETYPE_WEBP', 18 );
}

// IMG_WEBP constant is only defined in PHP 7.0.10 or later.
if ( ! defined( 'IMG_WEBP' ) ) {
  define( 'IMG_WEBP', IMAGETYPE_WEBP );
}