Do not sanitize an empty title.
git-svn-id: https://develop.svn.wordpress.org/trunk@1688 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8b407a6db1
commit
f7d9aadc28
@ -287,8 +287,15 @@ case 'editpost':
|
||||
if (empty($post_name)) {
|
||||
$post_name = $post_title;
|
||||
}
|
||||
|
||||
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);
|
||||
if (empty($post_name)) $post_name = sanitize_title($post_title);
|
||||
}
|
||||
|
||||
$trackback = $_POST['trackback_url'];
|
||||
// Format trackbacks
|
||||
$trackback = preg_replace('|\s+|', '\n', $trackback);
|
||||
|
Loading…
Reference in New Issue
Block a user