summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/functions-post.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-10-17 10:59:01 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-10-17 10:59:01 +0000
commit5706c01ed558781a96c746a7e788bf7bbff85115 (patch)
tree0d237cf2d79c2b2d71351f8fe3619dc878bd97a0 /wp-inst/wp-includes/functions-post.php
parent4d5baba70f247c345784ed35ea28c2f65dab95ec (diff)
downloadwordpress-mu-5706c01ed558781a96c746a7e788bf7bbff85115.tar.gz
wordpress-mu-5706c01ed558781a96c746a7e788bf7bbff85115.tar.xz
wordpress-mu-5706c01ed558781a96c746a7e788bf7bbff85115.zip
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
Diffstat (limited to 'wp-inst/wp-includes/functions-post.php')
-rw-r--r--wp-inst/wp-includes/functions-post.php5
1 files changed, 2 insertions, 3 deletions
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');