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

WordPress Trac noreply at wordpress.org
Sat Aug 20 17:34:14 UTC 2016


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

Comment (by boonebgorges):

 In [changeset:"38292"]:
 {{{
 #!CommitTicketReference repository="" revision="38292"
 Allow attachment taxonomies to be fetched as objects.

 By adding the `$output` parameter to `get_attachment_taxonomies()`, the
 function signature matches that of `get_object_taxonomies()`. The change
 also allows for more consistent behavior when passing `output=objects`
 to `get_object_taxonomies()` for the 'attachment' object type, since
 the `$output` parameter is now passed through the function stack.

 Props codemovement.pk.
 See #37368.
 }}}

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


More information about the wp-trac mailing list