[wp-trac] [WordPress Trac] #21608: get_the_terms() returns an array with keys that are not starting from 0
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 16 16:54:39 UTC 2012
#21608: get_the_terms() returns an array with keys that are not starting from 0
--------------------------+----------------------
Reporter: boryanka | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.4.1
Severity: normal | Resolution: invalid
Keywords: |
--------------------------+----------------------
Changes (by nacin):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Replying to [comment:4 JustinSainton]:
> Or use array_values(). Surely the benefits of having the $term_id listed
far outweigh the issues of indexing you're describing. Not only that, but
changing the behavior would undoubtedly break countless plugins that rely
on the current behavior.
Indeed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21608#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list