From f38a4a72d9ec5a63c0f94be3c9c173bd94e1b37e Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 7 Jan 2004 01:38:43 +0000 Subject: [PATCH] Fix for no categories on edit. git-svn-id: https://develop.svn.wordpress.org/trunk@732 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/post.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/post.php b/wp-admin/post.php index 91b2747c9c..5e7cb15123 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -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);