From 08d1cf75096cd06b5fb10a379789c741bbd83771 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 12 Aug 2025 14:47:31 +0000 Subject: [PATCH] Database: Update default `DB_CHARSET` to `utf8mb4` in `wp-config-sample.php`. `utf8mb4` is the complete UTF-8 implementation in MySQL, supporting the full range of Unicode characters by using up to 4 bytes per character. This includes characters outside the Basic Multilingual Plane, such as emoji and supplementary characters. `utf8mb4` ensures full compatibility with modern text content and diverse character sets. As of WordPress 4.2, on both new and existing installations, WordPress would automatically upgrade database tables to `utf8mb4` on compatible servers (MySQL 5.5.3 or later). However, the default `DB_CHARSET` value during setup was still set to `utf8` for compatibility with older MySQL versions. As of WordPress 6.5, the minimum required MySQL version is 5.5.5, so the default can be updated to `utf8mb4`. Follow-up to [30345], [31349], [57173], [57926]. Props bchecketts, JavierCasares, dmsnell, SergeyBiryukov. Fixes #48285. Built from https://develop.svn.wordpress.org/trunk@60629 git-svn-id: http://core.svn.wordpress.org/trunk@59965 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-config-sample.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-config-sample.php b/wp-config-sample.php index 4531bdf834..8f96fb0f4c 100644 --- a/wp-config-sample.php +++ b/wp-config-sample.php @@ -32,7 +32,7 @@ define( 'DB_PASSWORD', 'password_here' ); define( 'DB_HOST', 'localhost' ); /** Database charset to use in creating database tables. */ -define( 'DB_CHARSET', 'utf8' ); +define( 'DB_CHARSET', 'utf8mb4' ); /** The database collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 35f9790c59..e7a4016077 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60628'; +$wp_version = '6.9-alpha-60629'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.