diff --git a/wp-includes/class-wpdb.php b/wp-includes/class-wpdb.php index 68f1acfdf7..23c865b87d 100644 --- a/wp-includes/class-wpdb.php +++ b/wp-includes/class-wpdb.php @@ -4081,7 +4081,8 @@ class wpdb { * the polyfills from wp-includes/compat.php are not loaded. */ if ( '5.5.5' === $db_version && false !== strpos( $db_server_info, 'MariaDB' ) - && PHP_VERSION_ID < 80016 // PHP 8.0.15 or older. + && ( PHP_VERSION_ID <= 80015 // PHP 8.0.15 or older. + || 80100 <= PHP_VERSION_ID && PHP_VERSION_ID <= 80102 ) // PHP 8.1.0 to PHP 8.1.2. ) { // Strip the '5.5.5-' prefix and set the version to the correct value. $db_server_info = preg_replace( '/^5\.5\.5-(.*)/', '$1', $db_server_info ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 13192f7a92..af823242ca 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-alpha-61348'; +$wp_version = '7.0-alpha-61349'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.