Make WordPress Core

Opened 18 months ago

Closed 14 months ago

Last modified 14 months ago

#57609 closed defect (bug) (fixed)

remove_accents function is ignoring Azerbeijan special charecter.

Reported by: suleymankenar's profile suleymankenar Owned by: audrasjb's profile audrasjb
Milestone: 6.3 Priority: normal
Severity: normal Version:
Component: Permalinks Keywords: good-first-bug has-patch commit
Focuses: Cc:

Description

Hello,
As written in the title, remove_accents function does not have definition for Azerbeijan special charecter "Ə" and "ǝ" (U+018F). This is widely used letter in language, thus causing many problems.

Thanks

Change History (13)

#1 in reply to: ↑ description @suleymankenar
18 months ago

Replying to suleymankenar:

Hello,
As written in the title, remove_accents function does not have definition for Azerbeijan special charecter "Ə" and "ǝ" (U+018F). This is widely used letter in language, thus causing many problems.

Thanks

By the way, correct replacement character for those is, "e", not "a" which might seem that way.

#2 @audrasjb
18 months ago

  • Severity changed from major to normal
  • Version 6.1.1 deleted

#3 @Presskopp
15 months ago

  • Keywords good-first-bug added; needs-patch removed

#4 @Presskopp
15 months ago

  • Keywords needs-patch added

#5 @SergeyBiryukov
15 months ago

  • Milestone changed from Awaiting Review to 6.3

#6 @audrasjb
15 months ago

Looks like adding

'Ə' => 'E',
'ǝ' => 'e',

to remove_accents() does the job correctly.

This ticket was mentioned in PR #4445 on WordPress/wordpress-develop by coditive-przemek-h.


15 months ago
#7

  • Keywords has-patch added; needs-patch removed

It adds two missing Azerbeijan special characters to remove_accents function.

Fixes: https://core.trac.wordpress.org/ticket/57609

#8 @przemekhernik
15 months ago

I've added those two special characters in the mentioned PR. It should fix this issue.

This ticket was mentioned in PR #4449 on WordPress/wordpress-develop by coditive-przemek-h.


15 months ago
#9

It adds two missing Azerbeijan special characters to remove_accents function.

Fixes: https://core.trac.wordpress.org/ticket/57609](https://github.com/WordPress/wordpress-develop/pull/4445

#10 @audrasjb
14 months ago

  • Owner set to audrasjb
  • Status changed from new to accepted

The patch looks good to me. Self assigning for commit.

#11 @audrasjb
14 months ago

  • Keywords commit added

#12 @audrasjb
14 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 55858:

Formatting: Add support for schwa in remove_accents().

This changeset adds support for schwa character. Ə (U+018F) and ə (U+0259) are part of Latin Extended-B and used in
several languages like Azerbaijani or also in gender neutral Italian.

Props suleymankenar, audrasjb, przemekhernik.
Fixes #57609.

Note: See TracTickets for help on using tickets.