Opened 9 years ago
Closed 9 years ago
#41198 closed defect (bug) (fixed)
Reference dynamic hooks in doc blocks, e.g. archive_template -> {$type}_template
| Reported by: | donutz | Owned by: | DrewAPicture |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | docs |
Description
404 errors for in developer docs for archive_template and archive_template_hierarchy hooks:
https://core.trac.wordpress.org/browser/tags/4.8/src/wp-includes/template.php#L135
https://developer.wordpress.org/reference/functions/get_post_type_archive_template/
https://developer.wordpress.org/reference/hooks/archive_template/
https://developer.wordpress.org/reference/hooks/archive_template_hierarchy/
Slack: https://wordpress.slack.com/archives/C02RP4WU5/p1498718067706904
Change History (7)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
You're correct that these hooks are permutations of dynamic hooks, but they actually shouldn't be getting parsed in the first place – which is a bug – rather, they should be marked as duplicates of the dynamic hooks.