MariaDB version check issue | WordPress.org

In the code you check for the MariaDB version using this:

 if ( $isMaria && $results->major >= 10 && $results->minor >= 3 ) {
      $results->unconstrained = 1;

      return ImfsQueries::makeNumeric( $results );
    }
 /* mariadb 10.2 ar before */
 if ( $isMaria && $results->major >= 10 ) {
      $results->unconstrained = ImfsQueries::hasLargePrefix();

      return ImfsQueries::makeNumeric( $results );
    }

We just released 11.0 GA which means the first “if” will fail because the minor is < 3. Given that 10.2 hasn’t been supported for over a year I recommend just doing if ( $isMaria ) and dropping the second case.

Thanks!
Andrew Hutchings
MariaDB Foundation

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer