Make WordPress Core


Ignore:
Timestamp:
04/04/2024 03:11:37 PM (2 years ago)
Author:
johnbillion
Message:

Database: Remove back-compat for database servers that don't support utf8mb4.

Since WordPress 6.5, the minimum supported version of MySQL and MariaDB is 5.5.5. This means all supported database servers now support the utf8mb4 character set and therefore the conditional logic for this is no longer necessary.

Props l1nuxjedi, craigfrancis, OllieJones, johnbillion

Fixes #60096

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/setup-config.php

    r57793 r57926  
    397397                                        break;
    398398                                case 'DB_CHARSET':
    399                                         if ( 'utf8mb4' === $wpdb->charset || ( ! $wpdb->charset && $wpdb->has_cap( 'utf8mb4' ) ) ) {
     399                                        if ( 'utf8mb4' === $wpdb->charset || ( ! $wpdb->charset ) ) {
    400400                                                $config_file[ $line_num ] = "define( '" . $constant . "'," . $padding . "'utf8mb4' );\r\n";
    401401                                        }
Note: See TracChangeset for help on using the changeset viewer.