[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 07:23:20 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:  filosofo 
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Taxonomy      |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by jorbin):

 My first patch didn't solve it.  For the second I added a check to make
 sure we have a category assigned in [0] if there is only one category.

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


More information about the wp-trac mailing list