[wp-trac] [WordPress Trac] #39215: Support for string $args in wp_get_object_terms() broken in 4.7

WordPress Trac noreply at wordpress.org
Fri Dec 9 20:16:04 UTC 2016


#39215: Support for string $args in wp_get_object_terms() broken in 4.7
--------------------------+-----------------------------
 Reporter:  sstoqnov      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  4.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 It appears that `wp_get_object_terms()` no longer supports the string
 version of the `$args` parameter. Prior to WordPress 4.7 it used to
 support both string and array values, and there might be multiple plugins
 and themes that rely on this fact. It's also documented as `string|array`
 in the Codex.

 After digging a bit I found that this regression has been introduced in
 https://core.trac.wordpress.org/changeset/38667 which removed a lot of
 redundant code.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39215>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list