#40154 closed defect (bug) (fixed)
Incorrectly formatted $taxonomies parameter passed to wp_get_object_terms filter
Reported by: | ig_communitysites | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.7.4 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
Description
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.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Hi @ig_communitysites - Thanks for the ticket, and welcome to WordPress Trac!
You are correct that this is a regression. It was introduced in [38667].