[wp-trac] [WordPress Trac] #16953: Allow symlinked plugins

WordPress Trac noreply at wordpress.org
Tue Aug 20 10:49:45 UTC 2013


#16953: Allow symlinked plugins
------------------------------------+-----------------------------
 Reporter:  scribu                  |       Owner:
     Type:  enhancement             |      Status:  assigned
 Priority:  normal                  |   Milestone:  Future Release
Component:  Plugins                 |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+-----------------------------

Comment (by F J Kaiser):

 Generally I'm 100% ''against'' what @MikeSchinkel proposes: Syncing one
 option set with another one. To elaborte the ''why'': We already got that
 problem in other places, so let's please not add another one. Example:
 Parent/Child relationships are stored inside {{{get_option(
 "{$taxonomy}_children" );}}}. Bring that out of sync per accident and
 you're screwed. A bug that's buried inside a DB option is harder to trace
 back. And so you already know that you then need will something like
 {{{_get_term_hierarchy( $tax );}}} to fix syncing in case.

 To stick with Mikes example from #22802 and his directory structure:

 {{{
 /home/myacct/mysite1/  <-- Site #1 goes here
 /home/myacct/mysite2/  <-- Site #2 goes here
 /home/myacct/plugins/  <-- All the shared plugins go here

 # So when you need a URL that looks like this:
 http://mysite1.com/wp-content/plugins/myplugin/js/myajax.js

 # You instead get this URL because of the symlink:
 http://mysite1.com/wp-
 content/plugins/home/myacct/plugins/myplugin/js/myajax.js
 }}}

 Wouldn't it be easier to read out the full path and check where exactly
 you are? Doing this on the fly won't be easier than any other approach,
 but over all easier to debug. And PHP already got stuff like
 {{{getcwd()}}} that we can use alongside the directory constants and
 {{{ABSPATH}}} to compare real paths and symlinked paths.

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


More information about the wp-trac mailing list