Make WordPress Core

Opened 5 years ago

Last modified 3 years ago

#47550 new defect (bug)

Some Unicode characters not saving in customizer

Reported by: marvinside's profile marvinside Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.2.1
Component: Customize Keywords:
Focuses: Cc:

Description

If you use upcoming Emojis (Like U+1F90D White Heart - https://emojipedia.org/white-heart/ ), WordPress is unable to save the change.
Works at some places, doesn't work at other places.

In the customizer, i can use the Emoji for the site title and description without any problems.
If i instead try to use the emoji for a widget title the preview works, but saving does not.

There is no error message, all other things i changed will be saved, just the affected field keeps it old value.

Workaround: In areas where i am allowed to insert HTML, i can just write &#1F90D; to use the emoji.

Attachments (1)

test.curv.dev_wp-admin_customize.php_url=https%3A%2F%2Ftest.curv.dev%2F.png (213.9 KB) - added by marvinside 5 years ago.
Editing of widget Title

Download all attachments as: .zip

Change History (4)

#1 @marvinside
5 years ago

  • Summary changed from Unicode characters not saving in customizer to Some Unicode characters not saving in customizer

#2 @mbootsman
4 years ago

I think this needs some attention.
Copying ans pasting an emoji from a website, or using a emoji keyboard breaks UX, as a widget is just not saved, and previous content is shown.

User would need a notification that the emoji throws an error, or the emoji should be converted to the HMTL notation like &#1F90D; automatically.

#3 @celloexpressions
3 years ago

Are there any other places that this issue occurs in the customizer, besides widgets?

Has anyone tested for this issue with the new (5.8) block-based widget editor yet?

Note: See TracTickets for help on using tickets.