Make WordPress Core

Opened 12 years ago

Last modified 5 years ago

#20338 new defect (bug)

Slugs and special chars

Reported by: amirhabibi's profile amirhabibi Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: Permalinks Keywords: has-patch needs-testing
Focuses: Cc:

Description

When Wordpress generates a slug, the apostrophe mark is stripped.

Examples :

"I'm open" > im-open
"L'équipe" > lequipe
"Suzy's Place" > suzys-place

If the apostrophe is changed to "-" the auto generated slug will be more "readable" (and better for seo) :

"I'm open" > i-m-open
"L'équipe" > l-equipe
"Suzy's Place" > suzy-s-place

Maybe a constant to define what strategy to adopt ?

Attachments (1)

formatting.php.patch (1.0 KB) - added by Rynald0s 9 years ago.
Proposed patch

Download all attachments as: .zip

Change History (6)

#1 @iseulde
11 years ago

  • Component changed from General to Permalinks

#2 @amirhabibi
11 years ago

There's now a plugin to change the behaviour :

http://wordpress.org/plugins/french-slugs/

#4 @chriscct7
9 years ago

  • Keywords needs-patch added
  • Version changed from 3.3.1 to 3.3

@Rynald0s
9 years ago

Proposed patch

#5 @Rynald0s
9 years ago

  • Keywords has-patch needs-testing added; needs-patch removed
Note: See TracTickets for help on using tickets.