diff options
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'); |
