From 45b2e6b3affd7944e61fb3dbf524d58f65249b9f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 21 Jan 2010 07:19:23 +0000 Subject: [PATCH] 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 --- wp-admin/includes/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 632ce7721a..7762797580 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -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,