Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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 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
9 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
9 years ago

  • Component GeneralDatabase
  • Description modified (diff)
  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

Duplicate of #32315.

#3 @SergeyBiryukov
9 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.