[wp-trac] [WordPress Trac] #41293: wp_get_post_terms do not work with 'id=>name' argument

WordPress Trac noreply at wordpress.org
Thu Jul 13 13:37:57 UTC 2017


#41293: wp_get_post_terms do not work with 'id=>name' argument
--------------------------+-----------------------
 Reporter:  dany2217      |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.9
Component:  Taxonomy      |     Version:  4.7.5
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------
Changes (by boonebgorges):

 * status:  closed => reopened
 * resolution:  invalid =>
 * component:  General => Taxonomy
 * milestone:  Awaiting Review => 4.9


Comment:

 I think that the behavior described here may be a regression, due to
 [40514]. It's likely that we can fix it by using array concatenation
 `$array1 + $array2` rather than `array_merge()` in cases where the
 `fields` parameter implies a non-zero-indexed array. But this will need
 some automated tests to back it up.

 I'm putting the ticket into 4.9 for more exploration.

 cc @danielbachhuber, related to #40496 - I may ask you to verify a patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41293#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list