Opened 7 years ago
Closed 7 years ago
#40892 closed enhancement (fixed)
Documentation for `get_header` and `get_footer` actions are not accurate.
Reported by: | desrosj | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.9 | Priority: | low |
Severity: | minor | Version: | |
Component: | Themes | Keywords: | has-patch |
Focuses: | Cc: |
Description
The get_header
and get_footer
action hook Docblocks both say "The hook allows a specific footer/header template file to be used in place of the default footer template file."
This is not entirely accurate. While the hooks allow you to do something before the behavior of get_header()
or get_footer()
, it does not allow you to prevent the default output of these functions as the description suggests.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
I think we can just remove these inaccurate parts. We generally don't provide this kind of extended explanations for other filters, like
get_template_part_{$slug}
orpre_get_search_form
.get_sidebar()
is also affected.