Opened 4 years ago
Closed 3 years ago
#57097 closed defect (bug) (fixed)
`_add_template_loader_filters` uses `add_filter` instead of `add_action`
| Reported by: | swissspidy | Owned by: | davidbaumwald |
|---|---|---|---|
| Priority: | low | Milestone: | 6.2 |
| Component: | Themes | Version: | |
| Severity: | normal | Keywords: | good-first-bug has-patch commit |
| Cc: | Focuses: |
Description
_add_template_loader_filters uses add_filter to hook into pre_get_posts, which is an action hook and not a filter. Therefore, add_action should be used.
Technically, both are identical under the hood, but especially for people new to the code base this could cause confusion.
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)
In 55335: