[wp-trac] [WordPress Trac] #36335: Next generation: core autoloader proposal

WordPress Trac noreply at wordpress.org
Tue Sep 6 18:08:27 UTC 2016


#36335: Next generation: core autoloader proposal
-----------------------------+------------------
 Reporter:  dnaber-de        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  4.7
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------

Comment (by iamfriendly):

 Random plugin aside; If you use FeedWordPress with the current nightly,
 which includes [38374] then you'll have a bad time, as that plugin
 directly `require`s ABSPATH . WPINC . '/class-feed.php' in 2 places.

 It's fixable by hacking the plugin (yay) to replace that with

 {{{#!php
 <?php
 require_once( ABSPATH . WPINC . '/class-wp-feed-cache.php' );
 require_once( ABSPATH . WPINC . '/class-wp-feed-cache-transient.php' );
 require_once( ABSPATH . WPINC . '/class-wp-simplepie-file.php' );
 require_once( ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php' );
 }}}

 Would have been nice to have a deprecation notice about this, or something
 along those lines.

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


More information about the wp-trac mailing list