Opened 15 years ago
Closed 15 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)
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [12784]) Sanitize translation of default post slug. Props nbachiyski. fixes #11952