﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
13246	wp_set_post_categories assumes $post_categories has a value in [0], but wp_insert_post doesn't assign the default category there	jorbin	jorbin	"right now wp_insert post assigns the default category to a post just as an array item which should be in the 0 ofset.  However this isn't guaranteed.  If we cast it as the 0 offset in wp_insert_post, this solves the problem

To reproduce:

on a vanilla install with wp_debug enabled, add a post modifying the categories.  This causes the following error: Notice: Undefined offset: 0 in /opt/lampp/htdocs/amun/wp/trunk/wp-includes/post.php on line 2561  "	defect (bug)	closed	normal	3.0	Taxonomy	3.0	normal	fixed	has-patch needs-testing	
