Make WordPress Core

Opened 8 years ago

Last modified 5 years ago

#35292 new defect (bug)

Terms: get_terms by name mismatches emoji

Reported by: kraftbj's profile kraftbj Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.2
Component: Taxonomy Keywords:
Focuses: administration Cc:

Description

When assigning emoji-named terms to a post, it appears the post processing will match some emoji characters incorrectly. So far, it appears it occurs within get_terms.

Steps to duplicate:
Write a post and attempt to add two flag emoji (e.g. Mexico and Germany) as individual tags.

Expected: Both terms are assigned.

Actual: Only one.

Another method: Create two tags of just the two flags, then assign the second one created. The first one created will be assigned instead.

It doesn't happen for all emoji, but I didn't isolate if it by plane, etc.

Change History (2)

#1 @boonebgorges
8 years ago

@kraftbj Before testing this, can I get more information about your database charset and collation?

#2 @kraftbj
8 years ago

Thanks @boonebgorges utf8mb4 / utf8mb4_unicode_ci .

Note: See TracTickets for help on using tickets.