Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#11952 closed defect (bug) (fixed)

Make sure translators enter valid slug of the first post

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

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 17 years ago.

Download all attachments as: .zip

Change History (3)

#1 @nbachiyski
17 years ago

  • Keywords has-patch added

#2 @ryan
17 years ago

  • Resolution → fixed
  • Status new → closed

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

Note: See TracTickets for help on using tickets.