Make WordPress Core


Ignore:
Timestamp:
08/26/2023 01:01:05 PM (3 years ago)
Author:
johnbillion
Message:

Database: Remove support for the mysql extension.

The mysql extension is no longer used in PHP 7 or above. There's a good amount of conditional code in wpdb and the health checks that can be removed now that only the mysqli functions are used.

Fixes #59118

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r56401 r56475  
    13571357                }
    13581358
    1359                 if ( $wpdb->use_mysqli ) {
    1360                         // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_client_info
    1361                         $mysql_client_version = mysqli_get_client_info();
    1362                 } else {
    1363                         // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysql_get_client_info,PHPCompatibility.Extensions.RemovedExtensions.mysql_DeprecatedRemoved
    1364                         $mysql_client_version = mysql_get_client_info();
    1365                 }
     1359                // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_client_info
     1360                $mysql_client_version = mysqli_get_client_info();
    13661361
    13671362                /*
Note: See TracChangeset for help on using the changeset viewer.