Make WordPress Core

Timestamp:
11/08/2021 02:02:54 PM (4 years ago)
Author:
hellofromTonya
Message:

General: Introduce polyfill for str_contains() added in PHP 8.0.

PHP 8.0 introduced a new function: str_contains(). It performs a case-sensitive check indicating if given substring (needle) is contained in the string to search in (haystack).

This polyfill makes this function available for use in Core.

Ref:

Props ayeshrajans, costdev, desrosj, hellofromTonya, knutsp, pbearne.
Fixes #49652.

File:
1 added

Note: See TracChangeset for help on using the changeset viewer.