From 5706c01ed558781a96c746a7e788bf7bbff85115 Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 17 Oct 2005 10:59:01 +0000 Subject: WP Merge - added ol/ol to kses, added upload to page editor git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@404 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-includes/functions-post.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'wp-inst/wp-includes/functions-post.php') diff --git a/wp-inst/wp-includes/functions-post.php b/wp-inst/wp-includes/functions-post.php index c2d000f..c1c1c5a 100644 --- a/wp-inst/wp-includes/functions-post.php +++ b/wp-inst/wp-includes/functions-post.php @@ -217,11 +217,10 @@ function wp_attach_object($object, $post_parent = 0) { $post_ID = $ID; // Create a valid post name. - if ( empty($post_name) ) { + if ( empty($post_name) ) $post_name = sanitize_title($post_title); - } else { + else $post_name = sanitize_title($post_name); - } if (empty($post_date)) $post_date = current_time('mysql'); -- cgit