diff --git a/wp-includes/functions.php b/wp-includes/functions.php index a3abfae9cf..fd305be20b 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -8763,6 +8763,14 @@ function is_wp_version_compatible( $required ) { // Strip off any -alpha, -RC, -beta, -src suffixes. list( $version ) = explode( '-', $wp_version ); + if ( is_string( $required ) ) { + $trimmed = trim( $required ); + + if ( substr_count( $trimmed, '.' ) > 1 && str_ends_with( $trimmed, '.0' ) ) { + $required = substr( $trimmed, 0, -2 ); + } + } + return empty( $required ) || version_compare( $version, $required, '>=' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9b78065426..496d6160b5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-beta2-57706'; +$wp_version = '6.5-beta2-57707'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.