General: Fix nesting in compat.php.

Follow up to [57451].

Built from https://develop.svn.wordpress.org/branches/5.7@57456


git-svn-id: http://core.svn.wordpress.org/branches/5.7@56957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Joe McGill 2024-01-30 18:16:03 +00:00
parent b584f790fc
commit f51ef1dabe
1 changed files with 42 additions and 42 deletions

View File

@ -369,6 +369,7 @@ if ( ! function_exists( 'is_iterable' ) ) {
function is_iterable( $var ) {
return ( is_array( $var ) || $var instanceof Traversable );
}
}
if ( ! function_exists( 'str_starts_with' ) ) {
/**
@ -415,4 +416,3 @@ if ( ! function_exists( 'is_iterable' ) ) {
return substr( $haystack, -$len, $len ) === $needle;
}
}
}