WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#6696 closed enhancement (duplicate)

wordpress fails to sanitize ’

Reported by: sushubh Owned by:
Milestone: Priority: lowest
Severity: minor Version: 2.5
Component: General Keywords: needs-patch
Focuses: Cc:

Description

i type my blog posts in a word processor which convert ' to ’.

wordpress converts ’ to %e2%80%99 in slug...

i would like to suggest that ’ should be treated as ' while generating slugs!

another issue is …

… = ... it is also failed to sanitize during slug formation.

Change History (5)

comment:1 thee176 years ago

  • Milestone changed from 2.5.2 to 2.6

comment:2 jacobsantos5 years ago

  • Keywords needs-patch added; post slugs removed

WordPress should treat ’ as ', but ’ should also be removed from the rule: [^%a-z0-9 _-], but does not for some reason.

You can probably get away with creating a plugin for now that hooks into the sanitize_title filter and removes it that way.

comment:3 FFEMTcJ5 years ago

  • Milestone changed from 2.9 to Future Release

comment:4 Denis-de-Bernardy5 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

dup of #8934

comment:5 Denis-de-Bernardy5 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.