This resolves a fatal error and displays an actionable message if the `mysqli` PHP extension is missing. Previously, `wp_check_php_mysql_versions()` performed an early check whether `mysql`, `mysqli`, or `mysqlnd` extensions are loaded, but that did not work if the `mysqlnd` extension is the only one present. Checking specifically for `mysqli_connect()` or `mysql_connect()` functions should be a more reliable approach and more closely mirrors the existing checks in the `wpdb` class. Follow-up to [1955], [4489], [7234], [12732], [19760], [27257], [36434]. Props bgin, desrosj, dimadin, ipajen, hellofromTonya, sc0ttkclark, azaozz, SergeyBiryukov. Fixes #51988. Built from https://develop.svn.wordpress.org/trunk@55367 git-svn-id: http://core.svn.wordpress.org/trunk@54900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
50 KiB
50 KiB