[wp-trac] [WordPress Trac] #37368: get_object_taxonomies() ignores output type argument for attachments

WordPress Trac noreply at wordpress.org
Sun Aug 28 10:55:29 UTC 2016


#37368: get_object_taxonomies() ignores output type argument for attachments
--------------------------------------+---------------------
 Reporter:  Rarst                     |       Owner:
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.7
Component:  Taxonomy                  |     Version:  3.0
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+---------------------

Comment (by swissspidy):

 This breaks on HHVM because `array_unique()` does a string comparison and
 cannot convert a `stdClass` object to a string.

 Could probably be solved by introducing `WP_Taxonomy` in #36224 with a
 `__toString()` method.

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


More information about the wp-trac mailing list