diff --git a/wp-includes/compat.php b/wp-includes/compat.php index b2017b9a08..f9df28eac9 100644 --- a/wp-includes/compat.php +++ b/wp-includes/compat.php @@ -434,11 +434,15 @@ if ( ! function_exists( 'str_contains' ) ) { * @since 5.9.0 * * @param string $haystack The string to search in. - * @param string $needle The substring to search for in the haystack. + * @param string $needle The substring to search for in the `$haystack`. * @return bool True if `$needle` is in `$haystack`, otherwise false. */ function str_contains( $haystack, $needle ) { - return ( '' === $needle || false !== strpos( $haystack, $needle ) ); + if ( '' === $needle ) { + return true; + } + + return false !== strpos( $haystack, $needle ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index fd280cb8ce..0e50c7a078 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55725'; +$wp_version = '6.3-alpha-55726'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.