[wp-trac] [WordPress Trac] #43674: require() vs require_once()

WordPress Trac noreply at wordpress.org
Mon Apr 2 16:31:36 UTC 2018


#43674: require() vs require_once()
-----------------------------------+------------------------------
 Reporter:  luftaffen              |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Bootstrap/Load         |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:   => has-patch 2nd-opinion
 * version:  trunk =>
 * component:  General => Bootstrap/Load


Comment:

 Thanks for the ticket, @luftaffen . You're probably right that most files
 should switch to `(include|require)_once`, but that will need some more
 investigation, including its performance impact, if any.

 The root cause of the problem you're seeing is already being addressed in
 #43609.

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


More information about the wp-trac mailing list