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:
Matt Mullenweg 2004-01-07 01:38:43 +00:00
parent 0738b73f9a
commit f38a4a72d9
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);