Sanitize translation of default post slug. Props nbachiyski. fixes #11952

git-svn-id: https://develop.svn.wordpress.org/trunk@12784 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-01-21 07:19:23 +00:00
parent efb7966619
commit 45b2e6b3af
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ function wp_install_defaults($user_id) {
'post_excerpt' => '',
'post_title' => __('Hello world!'),
/* translators: Default post slug */
'post_name' => _x('hello-world', 'Default post slug'),
'post_name' => sanitize_title( _x('hello-world', 'Default post slug') ),
'post_modified' => $now,
'post_modified_gmt' => $now_gmt,
'guid' => $first_post_guid,