[wp-trac] [WordPress Trac] #60362: Emojis cause "Updating failed. Could not update post in the database." error
WordPress Trac
noreply at wordpress.org
Thu Oct 23 15:24:49 UTC 2025
#60362: Emojis cause "Updating failed. Could not update post in the database."
error
-------------------------------------------------+-------------------------
Reporter: mikefitzman | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Database | Version:
Severity: normal | Resolution:
Keywords: has-test-info needs-testing has- | Focuses:
patch |
-------------------------------------------------+-------------------------
Comment (by staurand):
I had a similar issue in a plugin, I ended up encoding emojis for all
charsets except "utf8mb4".
{{{#!php
if ( 'utf8mb4' !== $charset ) {
}}}
That's the safest way we found to fix this bug.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60362#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list