We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6045c24 commit b383524Copy full SHA for b383524
src/wp-includes/class-wpdb.php
@@ -4081,7 +4081,7 @@ public function has_cap( $db_cap ) {
4081
* the polyfills from wp-includes/compat.php are not loaded.
4082
*/
4083
if ( '5.5.5' === $db_version && false !== strpos( $db_server_info, 'MariaDB' )
4084
- && PHP_VERSION_ID < 80016 // PHP 8.0.15 or older.
+ && ( 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.
4085
) {
4086
// Strip the '5.5.5-' prefix and set the version to the correct value.
4087
$db_server_info = preg_replace( '/^5\.5\.5-(.*)/', '$1', $db_server_info );
0 commit comments