[wp-trac] [WordPress Trac] #22802: Empower Plugin Developers to make Symlink Compatible Plugins

WordPress Trac noreply at wordpress.org
Fri Dec 7 23:11:51 UTC 2012


#22802: Empower Plugin Developers to make Symlink Compatible Plugins
------------------------------------------------+--------------------------
 Reporter:  MikeSchinkel                        |       Owner:
     Type:  enhancement                         |      Status:  reopened
 Priority:  normal                              |   Milestone:  Awaiting
Component:  Plugins                             |  Review
 Severity:  normal                              |     Version:  3.4.2
 Keywords:  has-patch dev-feedback 2nd-opinion  |  Resolution:
------------------------------------------------+--------------------------

Comment (by MikeSchinkel):

 Replying to [comment:7 toscho]:
 > I like this idea. Not sure about the global variables – these are hard
 to debug. And I think `wp_include_plugin()` would be easier to understand
 than `load`.

 My code was a starting point and I'd be happy with anything that addresses
 the core concept; to capture the known filename at the time of include so
 it can be made available to the plugin.

 Global vars are easy but there are other ways to handle it, all depends on
 what the core team/community prefers today; I know preferred practices
 have evolved over the years.

 BTW, there is an existing `load_theme()` function which is why I called it
 `wp_load_plugin()`, but I really have no opinion what it's called because
 it'd be (mostly?) only used internally in core.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22802#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list