WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#11952 closed defect (bug) (fixed)

Make sure translators enter valid slug of the first post

Reported by: nbachiyski Owned by: 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 4 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 nbachiyski4 years ago

  • Keywords has-patch added

comment:2 ryan4 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.