Ticket #49652: 49652-1.patch
| File 49652-1.patch, 463 bytes (added by , 6 years ago) |
|---|
-
src/wp-includes/compat.php
diff --git a/src/wp-includes/compat.php b/src/wp-includes/compat.php index 2e258a88ea..3370d165b4 100644
a b function is_iterable( $var ) { 374 374 return ( is_array( $var ) || $var instanceof Traversable ); 375 375 } 376 376 } 377 378 if ( ! function_exists( 'str_contains' ) ) { 379 function str_contains( $haystack, $needle ) { 380 return '' === $needle || false !== strpos( $haystack, $needle ); 381 } 382 }