[wp-trac] Re: [WordPress Trac] #5096: wp_set_post_categories fails if input array index starts with other than 0

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 28 17:35:52 GMT 2007


#5096: wp_set_post_categories fails if input array index starts with other than 0
---------------------+------------------------------------------------------
 Reporter:  borgar   |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  normal   |    Milestone:  2.4      
Component:  General  |      Version:  2.3      
 Severity:  normal   |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by ryan):

 It was probably done to work around some bug in the dark past.  We can
 probably get rid of it, but a more conservative fix would be to add an
 isset on $post_categories[0] to that else if so that you don't get caught
 by the early return.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5096#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list