mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Do not sanitize an empty title.
git-svn-id: https://develop.svn.wordpress.org/trunk@1687 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -67,10 +67,13 @@ case 'post':
|
||||
if (empty($ping_status)) $ping_status = get_settings('default_ping_status');
|
||||
$post_password = $_POST['post_password'];
|
||||
|
||||
if (empty($post_name))
|
||||
$post_name = sanitize_title($post_title, $post_ID);
|
||||
else
|
||||
if (empty($post_name)) {
|
||||
if (! empty($post_title)) {
|
||||
$post_name = sanitize_title($post_title, $post_ID);
|
||||
}
|
||||
} else {
|
||||
$post_name = sanitize_title($post_name, $post_ID);
|
||||
}
|
||||
|
||||
$trackback = $_POST['trackback_url'];
|
||||
// Format trackbacks
|
||||
|
||||
Reference in New Issue
Block a user