[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
Fri Aug 23 21:28:34 UTC 2013


#23506: get_terms() assumes its taxonomies argument is a numeric array with a 0 key
------------------------------+-----------------------------
 Reporter:  nbachiyski        |       Owner:  wonderboymusic
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.7
Component:  Taxonomy          |     Version:  3.6
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"25108"]:
 {{{
 #!CommitTicketReference repository="" revision="25108"
 Use `reset()` to grab the first taxonomy in an array, not by numerical
 index. Cleans up whitespace. Props webord, nbachiyski. Fixes #23506.
 }}}

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


More information about the wp-trac mailing list