[wp-trac] [WordPress Trac] #13246: wp_set_post_categories assumes $post_categories has a value in [0], but wp_insert_post doesn't assign the default category there

WordPress Trac wp-trac at lists.automattic.com
Tue May 4 16:21:24 UTC 2010


#13246: wp_set_post_categories assumes $post_categories has a value in [0], but
wp_insert_post doesn't assign the default category there
--------------------------+-------------------------------------------------
 Reporter:  jorbin        |       Owner:  jorbin                 
     Type:  defect (bug)  |      Status:  assigned               
 Priority:  normal        |   Milestone:  3.0                    
Component:  Taxonomy      |     Version:  3.0                    
 Severity:  normal        |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------

Comment(by duck_):

 Replying to [comment:3 scribu]:
 > I wasn't able to reproduce the notice. Could you provide more detailed
 steps to reproduce?

 I get the error when only one category is checked before clicking Update

 {{{Undefined offset: 0 in \wp-dev\wp-includes\post.php on line 2574}}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13246#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list