[wp-trac] [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
Thu Aug 30 06:41:18 UTC 2012


#5096: wp_set_post_categories fails if input array index starts with other than 0
--------------------------+-----------------------------
 Reporter:  borgar        |       Owner:  ryan
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Taxonomy      |     Version:  2.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------------
Changes (by wonderboymusic):

 * keywords:  gsoc has-patch => has-patch


Comment:

 This now works no prob - patch added:

 {{{
 wp_set_post_categories( 1, array( '', 9 ) );
 }}}

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


More information about the wp-trac mailing list