[wp-trac] [WordPress Trac] #41113: WP_Term_Query::get_terms() : Do not presume the $taxonomies is a 0-based array
    WordPress Trac 
    noreply at wordpress.org
       
    Wed Jun 21 10:08:14 UTC 2017
    
    
  
#41113: WP_Term_Query::get_terms() : Do not presume the $taxonomies is a 0-based
array
--------------------------+-----------------------------
 Reporter:  david.binda   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In #23506 the assumption that $taxonomies is a 0-based array has been
 flagged and patched via r25108, however a part of the fix has been
 reverted, very likely due to an oversight, in r25162 (addressing unrelated
 ticket - #11823)
 Attached patch is restoring the original fix, which is using `reset()`
 instead of assuming that `$taxonomies[0]` exists.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41113>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list