Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#43087 closed defect (bug) (duplicate)

Unicode emoji in $wpdb->insert

Reported by: loranrendel's profile loranrendel Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9.1
Component: Database Keywords: close
Focuses: Cc:

Description (last modified by SergeyBiryukov)

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)

#1 @jdgrimes
6 years ago

  • Keywords close added

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.

#2 @SergeyBiryukov
6 years ago

  • Component changed from General to Database
  • Description modified (diff)
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #32315.

#3 @SergeyBiryukov
6 years ago

  • Description modified (diff)

Didn't mean to remove the emoji from description, not sure what happened here.

Note: See TracTickets for help on using tickets.