Opened 4 years ago
Closed 4 years ago
#8704 closed defect (bug) (fixed)
Missing Filter in function wp_get_object_terms()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | Taxonomy | Version: | 2.7 |
| Severity: | normal | Keywords: | has-patch tested commit |
| Cc: |
Description
The qTranslate plugin author has asked me to forward this issue to WP dev.
in wp-includes/taxonomy.php function wp_get_object_terms()
find
return $terms;
replace with
$terms = apply_filters('wp_get_object_terms', $terms);
return $terms;
Original discussion at http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=305
Enjoy
Attachments (1)
Change History (9)
Denis-de-Bernardy — 4 years ago
- Keywords has-patch dev-feedback added
- Keywords tested added; dev-feedback removed
- Milestone changed from 2.7.2 to 2.8
- Resolution set to fixed
- Status changed from new to closed
comment:6
follow-up:
↓ 7
Denis-de-Bernardy — 4 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
shouldn't the empty terms list be filtered too, as in the initial patch?
Replying to Denis-de-Bernardy:
shouldn't the empty terms list be filtered too, as in the initial patch?
Thanks for the typo catch.
Bad manual application of the patch :-(
Note: See
TracTickets for help on using
tickets.

patch adds a filter that passes the full set of parameters.