[wp-trac] [WordPress Trac] #22395: Single accents in the Title field should be removed from URLs, just like apostrophes
WordPress Trac
noreply at wordpress.org
Fri Nov 9 10:19:41 UTC 2012
#22395: Single accents in the Title field should be removed from URLs, just like
apostrophes
-----------------------------+-------------------------
Reporter: glueckpress | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Editor
Version: 3.4.2 | Severity: normal
Keywords: needs-patch |
-----------------------------+-------------------------
This is about the Title and URL fields in the post edit screen.
'''Currently, single accents are treated as valid entities for URLs:'''
{{{
TITLE: Als wär´s ein Stück von mir
=> URL: http://domain.tld/als-war´-s-ein-stuck-von-mir
=> URL: http://domain.tld/als-war%C2%B4-s-ein-stuck-von-mir
}}}
Note how the accent is inaccurately used as an apostrophe here. Sadly,
many users do that.
'''Because it is a single accent, the same behavior as with an apostrophe
would save the URL here:'''
{{{
TITLE: Als wär´s ein Stück von mir (U+00B4 Acute Accent)
-OR-
TITLE: Als wär`s ein Stück von mir (U+0060 Grave Accent)
-OR-
TITLE: Als wär's ein Stück von mir (U+0027 Apostrophe)
-OR-
TITLE: Als wär’s ein Stück von mir (U+2018 Left Single Quotation)
-OR-
TITLE: Als wär‘s ein Stück von mir (U+2019 Right Single Quotation)
-SHOULD ALL BE REMOVED FROM URLS LIKE APOSTROPHES-
=> URL: http://domain.tld/als-wars-ein-stuck-von-mir
}}}
Disclaimer: Is there a need for non-western languages to keep accents
and/or single quotations in URLs?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22395>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list