#43087 closed defect (bug) (duplicate)
Unicode emoji in $wpdb->insert
| Reported by: | loranrendel | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Database | Version: | 4.9.1 |
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.