[wp-trac] [WordPress Trac] #36819: Load plugin.php earlier in wp-settings.php

WordPress Trac noreply at wordpress.org
Fri May 13 17:53:45 UTC 2016


#36819: Load plugin.php earlier in wp-settings.php
----------------------------+------------------
 Reporter:  jorbin          |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  4.6
Component:  Bootstrap/Load  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------

Comment (by jorbin):

 Replying to [comment:2 dd32]:
 > > This could potentially affect `advance-cache.php`, if it is preloading
 and changing the filter globals
 >
 > For one such example of that, see Batcache:
 > https://plugins.trac.wordpress.org/browser/batcache/trunk/advanced-
 cache.php#L538
 >
 > Batcache appears to be "safe" as it doesn't first do `$wp_filter =
 array()`, however there's bound to be others that do.

 The above patch is an early version of something that will help prevent
 this potential issue. It backups up and merges the plugin globals around
 advance-cache.php.  If it looks good to others, we can flesh it out with
 tests, documentation, etc

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


More information about the wp-trac mailing list