diff --git a/wp-includes/compat.php b/wp-includes/compat.php index f9df28eac9..38ae725e93 100644 --- a/wp-includes/compat.php +++ b/wp-includes/compat.php @@ -488,7 +488,7 @@ if ( ! function_exists( 'str_ends_with' ) ) { $len = strlen( $needle ); - return 0 === substr_compare( $haystack, $needle, -$len, $len ); + return $needle === substr( $haystack, -$len, $len ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index c41589188d..bd09b38b20 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-56014'; +$wp_version = '6.3-alpha-56015'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.