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

WordPress Trac noreply at wordpress.org
Tue Jul 23 14:14:23 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:  Future Release
Component:  Taxonomy      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------------
Changes (by markjaquith):

 * milestone:  Awaiting Review => Future Release


Comment:

 Seems prudent. Alternatively (or even additionally), we could start using
 using the proper array function to grab the first item, instead of `[0]`
 (i.e. `current()`, or even `list()`).

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


More information about the wp-trac mailing list