[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 22:23:57 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 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59723#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list