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

WordPress Trac noreply at wordpress.org
Sat Dec 29 21:23:15 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:  closed
 Priority:  normal        |   Milestone:
Component:  Taxonomy      |     Version:  2.3
 Severity:  normal        |  Resolution:  worksforme
 Keywords:  has-patch     |
--------------------------+-------------------------
Changes (by wonderboymusic):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  Future Release =>


Comment:

 This works now in core:

 {{{
 php -r "require( 'wp-load.php' );
 wp_set_post_categories( 1, array( '', '', '', '', '', '', 7, 8, 9 ) ); "
 }}}

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


More information about the wp-trac mailing list