Opened 22 months ago
Closed 19 months ago
#57097 closed defect (bug) (fixed)
`_add_template_loader_filters` uses `add_filter` instead of `add_action`
Reported by: | swissspidy | Owned by: | davidbaumwald |
---|---|---|---|
Milestone: | 6.2 | Priority: | low |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | good-first-bug has-patch commit |
Focuses: | Cc: |
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.
In 55335: