Fix for no categories on edit.
git-svn-id: https://develop.svn.wordpress.org/trunk@732 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0738b73f9a
commit
f38a4a72d9
|
@ -248,6 +248,7 @@ switch($action) {
|
||||||
}
|
}
|
||||||
$post_ID = $HTTP_POST_VARS['post_ID'];
|
$post_ID = $HTTP_POST_VARS['post_ID'];
|
||||||
$post_categories = $HTTP_POST_VARS['post_category'];
|
$post_categories = $HTTP_POST_VARS['post_category'];
|
||||||
|
if (!$post_categories) $post_categories[] = 1;
|
||||||
$post_autobr = intval($HTTP_POST_VARS['post_autobr']);
|
$post_autobr = intval($HTTP_POST_VARS['post_autobr']);
|
||||||
$content = balanceTags($HTTP_POST_VARS['content']);
|
$content = balanceTags($HTTP_POST_VARS['content']);
|
||||||
$content = format_to_post($content);
|
$content = format_to_post($content);
|
||||||
|
|
Loading…
Reference in New Issue