[wp-trac] [WordPress Trac] #40154: Incorrectly formatted $taxonomies parameter passed to wp_get_object_terms filter

WordPress Trac noreply at wordpress.org
Tue Mar 14 16:38:38 UTC 2017


#40154: Incorrectly formatted $taxonomies parameter passed to wp_get_object_terms
filter
-------------------------------+-----------------------------
 Reporter:  ig_communitysites  |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Taxonomy           |    Version:  4.7.3
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 According to documentation: the $taxonomies parameter passed into the
 wp_get_object_terms filter at line 1911 of wp-includes/taxonomy.php should
 be "SQL-formatted (comma-separated and quoted) list of taxonomy names".
 That definitely used to be the case on v4.5.

 In 4.7.x, however, that $taxonomies parameter is formatted thus:

 $taxonomies = implode( ',', $taxonomies );

 on line 1895. That just produces a comma-separated list, without any
 quoting.

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


More information about the wp-trac mailing list