diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-10-17 10:59:01 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-10-17 10:59:01 +0000 |
| commit | 5706c01ed558781a96c746a7e788bf7bbff85115 (patch) | |
| tree | 0d237cf2d79c2b2d71351f8fe3619dc878bd97a0 /wp-inst/wp-includes/functions-post.php | |
| parent | 4d5baba70f247c345784ed35ea28c2f65dab95ec (diff) | |
| download | wordpress-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.php | 5 |
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'); |
