#56285 closed defect (bug) (fixed)
export_preview_data() added wrongly
Reported by: | Drivingralle | Owned by: | sergeybiryukov |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | trivial | Version: | 4.5 |
Component: | Customize | Keywords: | has-patch commit |
Focuses: | Cc: |
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.
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_Widgets
class, added in [27419] / #27112, already uses the correct function.