Fix for no categories on edit.
git-svn-id: http://svn.automattic.com/wordpress/trunk@732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
119f72da24
commit
8b4985a835
|
@ -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