Do not sanitize an empty title.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8db1ca2dfa
commit
120f11f4ed
|
@ -67,10 +67,13 @@ case 'post':
|
||||||
if (empty($ping_status)) $ping_status = get_settings('default_ping_status');
|
if (empty($ping_status)) $ping_status = get_settings('default_ping_status');
|
||||||
$post_password = $_POST['post_password'];
|
$post_password = $_POST['post_password'];
|
||||||
|
|
||||||
if (empty($post_name))
|
if (empty($post_name)) {
|
||||||
|
if (! empty($post_title)) {
|
||||||
$post_name = sanitize_title($post_title, $post_ID);
|
$post_name = sanitize_title($post_title, $post_ID);
|
||||||
else
|
}
|
||||||
|
} else {
|
||||||
$post_name = sanitize_title($post_name, $post_ID);
|
$post_name = sanitize_title($post_name, $post_ID);
|
||||||
|
}
|
||||||
|
|
||||||
$trackback = $_POST['trackback_url'];
|
$trackback = $_POST['trackback_url'];
|
||||||
// Format trackbacks
|
// Format trackbacks
|
||||||
|
|
Loading…
Reference in New Issue