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:
saxmatt 2004-01-07 01:38:43 +00:00
parent 119f72da24
commit 8b4985a835
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ switch($action) {
}
$post_ID = $HTTP_POST_VARS['post_ID'];
$post_categories = $HTTP_POST_VARS['post_category'];
if (!$post_categories) $post_categories[] = 1;
$post_autobr = intval($HTTP_POST_VARS['post_autobr']);
$content = balanceTags($HTTP_POST_VARS['content']);
$content = format_to_post($content);