#56285 closed defect (bug) (fixed)
export_preview_data() added wrongly
| Reported by: | Drivingralle | Owned by: | sergeybiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.1 |
| Component: | Customize | Version: | 4.5 |
| Severity: | trivial | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
The method export_preview_data() in WP_Customize_Nav_Menus is added as a filter to the hook wp_footer (https://developer.wordpress.org/reference/hooks/wp_footer/) as a filter but it's a action hook.
Tiny bug. I'll attach a patch.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Good catch, thanks! This does not affect anything in practice, but makes sense to correct for better semantics.
Introduced in [36889] / #27355. A similar instance in the
WP_Customize_Widgetsclass, added in [27419] / #27112, already uses the correct function.