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:
parent
efb7966619
commit
45b2e6b3af
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user