WordPress.org

Make WordPress Core

Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

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

Permalink is not well converted with German characters with Block Editor

Reported by: manooweb Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:
PR Number:

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 8 months ago.

Download all attachments as: .zip

Change History (3)

#1 @ocean90
8 months 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
8 months 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.