[wp-trac] [WordPress Trac] #32315: $wpdb->insert fails without error msg
WordPress Trac
noreply at wordpress.org
Thu Oct 10 09:00:00 UTC 2019
#32315: $wpdb->insert fails without error msg
-------------------------------------------------+-------------------------
Reporter: dlt101 | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting
| Review
Component: Database | Version: 4.2.1
Severity: normal | Resolution:
Keywords: dev-feedback has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by woodyhayday):
For those who've come here looking to specifically overcome $wpdb silently
failing when an emoji is passed, and need a temporary workaround. Passing
through
{{{
wp_encode_emoji()
}}}
... lets emoji-ridden strings be successfully passed through $wpdb.
Not a long-term fix. Suspect adding 4byte emoji encoding to the data-
conversion would be sensible?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32315#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list