#32989 closed defect (bug) (fixed)
The inline documentation on the filters commentspopup_template and frontpage_template
Reported by: | birgire | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 4.2.2 |
Component: | Themes | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
In the file:
we got this description:
The template path is filterable via the 'comments_popup_template' hook.
but that's not correct since the underscore is removed in the get_query_template()
function:
$type = preg_replace( '|[^a-z0-9-]+|', '', $type );
where the type comments-popup
is modified to commentspopup
.
The correct filter is therefore commentspopup_template
and the documentation should read:
The template path is filterable via the 'commentspopup_template' hook.
Similarly in the file:
the description:
Looks for 'front-page.php'. The template path is filterable via the 'front_page_template' hook.
should be:
Looks for 'front-page.php'. The template path is filterable via the 'frontpage_template' hook.
Attachments (1)
Change History (5)
#2
@
9 years ago
- Focuses template removed
- Keywords has-patch added
- Milestone changed from Awaiting Review to 4.3
Good catch, thanks for pointing that out. If there are others, I'll handle updating them via #32246.
I meant to write: where the template type
comments_popup
is modified tocommentspopup
, where the type comes from