#40154 closed defect (bug) (fixed)
Incorrectly formatted $taxonomies parameter passed to wp_get_object_terms filter
| Reported by: | ig_communitysites | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7.4 |
| Component: | Taxonomy | Version: | 4.7 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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 (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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].