[wp-trac] [WordPress Trac] #59723: Pattern file containing PHP constant from theme causes fatal error on update to WordPress 6.4
WordPress Trac
noreply at wordpress.org
Tue Oct 24 23:10:54 UTC 2023
#59723: Pattern file containing PHP constant from theme causes fatal error on
update to WordPress 6.4
-----------------------------+------------------------
Reporter: fabiankaegy | Owner: joemcgill
Type: defect (bug) | Status: accepted
Priority: high | Milestone: 6.4
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+------------------------
Comment (by pbiron):
Replying to [comment:8 rajinsharwar]:
> Just a side query, why are we loading the patterns on the **init**
instead of **after_theme_setup**? 🧐
> The patterns are a part of that theme after all.
I have the same question. Registering a theme's pattens on
`after_theme_setup` (w/ a priority of 20) seems to make much more sense.
Maybe there's some underlying reason the editor needs them on `init`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59723#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list