[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
Wed Oct 25 04:08:25 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 huzaifaalmesbah):

 I can reproduce error. following comment:10


 {{{
 PHP Fatal error:  Uncaught Error: Undefined constant "NAMESPACE_IMAGE_URL"
 in /Users/huzaifa/Project/wp/test/wp-content/themes/wp-core-59723-sample-
 theme/patterns/sample.php:9
 }}}

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


More information about the wp-trac mailing list