WordPress.org

Make WordPress Core

Opened 8 years ago

Last modified 5 months ago

#20338 new defect (bug)

Slugs and special chars

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

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 4 years ago.
Proposed patch

Download all attachments as: .zip

Change History (6)

#1 @iseulde
6 years ago

  • Component changed from General to Permalinks

#2 @amirhabibi
6 years ago

There's now a plugin to change the behaviour :

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

#4 @chriscct7
4 years ago

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

@Rynald0s
4 years ago

Proposed patch

#5 @Rynald0s
4 years ago

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