Skip to content

Commit b383524

Browse files
committed
Update the MariaDB version prefix for PHP version 8.1.0 to 8.1.2
1 parent 6045c24 commit b383524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/class-wpdb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4081,7 +4081,7 @@ public function has_cap( $db_cap ) {
40814081
* the polyfills from wp-includes/compat.php are not loaded.
40824082
*/
40834083
if ( '5.5.5' === $db_version && false !== strpos( $db_server_info, 'MariaDB' )
4084-
&& PHP_VERSION_ID < 80016 // PHP 8.0.15 or older.
4084+
&& ( PHP_VERSION_ID < 80016 || ( PHP_VERSION_ID >= 80100 && PHP_VERSION_ID < 80103 ) ) // PHP 8.0.15 or older or PHP 8.1.0 to PHP 8.1.2.
40854085
) {
40864086
// Strip the '5.5.5-' prefix and set the version to the correct value.
40874087
$db_server_info = preg_replace( '/^5\.5\.5-(.*)/', '$1', $db_server_info );

0 commit comments

Comments
 (0)