[wp-trac] [WordPress Trac] #23506: get_terms() assumes its taxonomies argument is a numeric array with a 0 key (was: get_terms() assumes its taxonomies argument is a numeric array)

WordPress Trac noreply at wordpress.org
Tue Feb 19 00:36:22 UTC 2013


#23506: get_terms() assumes its taxonomies argument is a numeric array with a 0 key
--------------------------+------------------------------
 Reporter:  nbachiyski    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by Viper007Bond):

 Replying to [comment:3 nbachiyski]:
 > I still think 0-based is the better term.
 >
 > The array, which is a result of `$a = array( 1, 2, 3); unset( $a[0] );`
 is still numeric, but its zeroth element is missing.

 True!

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


More information about the wp-trac mailing list