[wp-trac] [WordPress Trac] #32845: Introduce wp_include()

WordPress Trac noreply at wordpress.org
Tue Jun 30 23:15:33 UTC 2015

#32845: Introduce wp_include()
 Reporter:  johnjamesjacoby  |       Owner:
     Type:  feature request  |      Status:  reopened
 Priority:  normal           |   Milestone:
Component:  Plugins          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:

Comment (by boonebgorges):

 I'm all in favor of taking steps toward a more decoupled WordPress. But
 given WP's current filesystem design, which is pretty haphazard, per-file
 overrides seem like a pretty bad way to accomplish it. Introducing a
 filter like this today will tie our hands a lot in the future. What if we
 decide, say, that a function in `category-template.php` should be moved to
 `taxonomy.php`? Plugins that are overriding `category-template.php` will
 get a fatal error due to a redefined function, while those overriding
 `taxonomy.php` will be missing the function altogether.

 A truly modular WordPress would be designed for decoupling. Currently, we
 aren't. We should work toward that before allowing people to turn off
 arbitrary parts of the system.

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

More information about the wp-trac mailing list