[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 23:02:10 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:  4.7.1
Component:  Taxonomy                  |     Version:  4.7
 Severity:  critical                  |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------

Comment (by tyxla):

 > Note that the `is_string( $args )` check shouldn't be needed here.

 Since calling `wp_parse_args()` on an array `$args` is completely
 unnecessary, my point was to avoid any overhead that calling
 `wp_parse_args()` on that array would cause. But you're right that
 `wp_parse_args()` will work just fine for arrays as well, so I'm attaching
 an updated patch.

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


More information about the wp-trac mailing list