#43087 closed defect (bug) (duplicate)
Unicode emoji in $wpdb->insert
Reported by: | loranrendel | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.9.1 |
Component: | Database | Keywords: | close |
Focuses: | Cc: |
Description (last modified by )
When trying using $wpdb->insert
with if containing unicode emoji 😉, the method returns false and no inserts happens.
It happens inside following core code in _insert_replace_helper
:
$data = $this->process_fields( $table, $data, $format ); if ( false === $data ) { return false; }
Change History (3)
Note: See
TracTickets for help on using
tickets.
Thanks for the ticket @loranrendel! I think that this might be a duplicate of #32315. It deals with the same general issue of
$wpdb->insert()
failing without an error message. If others agree, we can close this as a duplicate, since there is already some discussion and a patch on that ticket.