Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#11952 closed defect (bug) (fixed)

Make sure translators enter valid slug of the first post

Reported by: nbachiyski's profile nbachiyski Owned by: nbachiyski's profile nbachiyski
Milestone: 3.0 Priority: high
Severity: normal Version: 2.9
Component: I18N Keywords: has-patch
Focuses: Cc:

Description

Currently the slug of the first post is taken by the call:

_x('hello-world', 'Default post slug')

Then, this value is directly inserted in the database. If the translator entered a string in a non-sanitized form, the first post just won't open with pretty permalinks on.

If we call sanitize_title() in the string, we can make sure the right value goes in the database.

Attachments (1)

sanitize-translation-of-hello-world-slug.2.diff (606 bytes) - added by nbachiyski 14 years ago.

Download all attachments as: .zip

Change History (3)

#1 @nbachiyski
14 years ago

  • Keywords has-patch added

#2 @ryan
14 years ago

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

(In [12784]) Sanitize translation of default post slug. Props nbachiyski. fixes #11952

Note: See TracTickets for help on using tickets.