[wp-trac] [WordPress Trac] #37707: Change the inclusion of 'plugins.php' to require_once

WordPress Trac noreply at wordpress.org
Thu Aug 18 04:46:45 UTC 2016


#37707: Change the inclusion of 'plugins.php' to require_once
----------------------------+------------------
 Reporter:  jorbin          |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  4.7
Component:  Bootstrap/Load  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+------------------

Comment (by dd32):

 This gets a +1 from me, although it feels a little odd at first to expect
 that part of WordPress may be loaded before WordPress is loaded :)

 In the past I've been told that some opcaches have had bugs where `stat`
 (or `validate_timestamps`) configuration options are disabled and the
 usage of `require_once()` would bypass it, I don't see that as a good
 reason against this change though. It could be done with a conditional
 include on `if ( ! function_exists( 'add_filter' ) )` if that was an
 issue.

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


More information about the wp-trac mailing list