Opened 5 years ago
Last modified 20 months ago
#35792 assigned defect (bug)
tags cannot be added to post when using armenian language interface
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.4 |
Component: | Administration | Keywords: | needs-patch |
Focuses: | ui, javascript | Cc: |
Description
when wordpress interface language is Armenian, tags cannot be added to posts.
after switching interface language to English, tags can be added.
version 4.4.2, downloaded and installed yesterday.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hello @noch and welcome to Trac. That's interesting. The Armenian translation translates the tag delimiter with a dot
'.'
so the following intagBox.clean()
becomes:
which means "replace any character, globally (i.e. all matches) with a comma" and the final result is an empty string because all commas get removed in following replacements. So,
comma
passed to the regex should probably be escaped when it's a special character. To be honest, I don't understand the second check forif ( ',' !== comma )
which re-adds back the original delimiter, so I'd appreciate someone with more historical knowledge than me to have a look at this :) See [19853]. cc @azaozz