Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#47335 closed defect (bug) (reported-upstream)

Permalink is not well converted with German characters with Block Editor

Reported by: manooweb's profile manooweb Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:

Description

Steps to reproduce

  • Put site language in German
  • Create a new post with a title in German with specific character like an umlaut for example on an "a" => ä
  • Save the post as Draft
  • See the umlaut is converted as a simple "a" instead of "ae". See : screenshot

It seems remove_accents does not do the job or not be applied.

When we edit the title - without saving the post - the URL Slug is not well converted too

Notice that it works well in a classic editor context with the same WordPress version.

Attachments (1)

permalink-umlaut-block-editor.jpg (242.6 KB) - added by manooweb 5 years ago.

Download all attachments as: .zip

Change History (3)

#1 @ocean90
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed
  • Version 5.2 deleted

Hello @manooweb, thanks for the report.

This is a known issue in the block editor (Gutenberg) which is already reported upstream on GitHub in https://github.com/WordPress/gutenberg/issues/12907.

#2 @manooweb
5 years ago

@ocean90 If you said :-)
Be careful about some languages like German, Danish, Serbian ... It is not just a replacement by removing accent or removing special characters as I saw in th other tickets.

See https://developer.wordpress.org/reference/functions/remove_accents/ as you certainly know

Note: See TracTickets for help on using tickets.