[wp-trac] [WordPress Trac] #28441: Errant activation hook with symlinked plugins in WordPress 3.9.x

WordPress Trac noreply at wordpress.org
Tue Jun 3 20:14:38 UTC 2014


#28441: Errant activation hook with symlinked plugins in WordPress 3.9.x
--------------------------+------------------------------
 Reporter:  clifgriffin   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.9.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by clifgriffin):

 Replying to [comment:1 jdgrimes]:
 > I can only reproduce this by adding this:
 >
 > {{{
 > $wp_plugin_paths['/Applications/MAMP/htdocs_test/wp-content/plugins'] =
 '/Users/me/Dropbox/Development/Repositories';
 > }}}
 >
 > I have a feeling you probably have a plugin with this path:
 `/Users/me/Dropbox/Development/Repositories/my-plugin.php` which you are
 also symlinking to the `/Applications/MAMP/htdocs_test/wp-content/plugins`
 directory.
 >
 > The solution is that the `$wp_plugin_paths` should always be ordered by
 length, from longest to shortest. That way we won't have path conflicts
 like this.
 >
 > Related: #16953

 Unfortunately, no.  Just double checked to be certain, but I only have
 symlinks setup for directories.  From terminal:

 {{{
 mbp:plugins me$ ls -lart | grep "\->"
 lrwxr-xr-x   1 me  admin      79 Feb  8 11:12 advanced-content-templates
 -> /Users/me/Dropbox/Development/Repositories/advanced-content-templates/
 lrwxr-xr-x   1 me  admin      65 Feb  8 11:48 wp-sent-mail ->
 /Users/me/Dropbox/Development/Repositories/wp-sent-mail/
 lrwxr-xr-x   1 me  admin      66 Feb  8 11:48 genesis-shopp ->
 /Users/me/Dropbox/Development/Repositories/genesis-shopp/
 lrwxr-xr-x   1 me  admin      79 Feb  8 12:55 simple-post-template ->
 /Users/me/Dropbox/Development/Repositories/simple-post-template/trunk/
 lrwxr-xr-x   1 me  admin      75 Feb 11 23:28 shopp-google-analytics ->
 /Users/me/Dropbox/Development/Repositories/shopp-google-analytics/
 lrwxr-xr-x   1 me  admin      72 Apr  3 20:32 shopp-exchange-rates ->
 /Users/me/Dropbox/Development/Repositories/shopp-exchange-rates
 lrwxr-xr-x   1 me  admin      64 May  6 07:56 featherlinks ->
 /Users/me/Dropbox/Development/Repositories/featherlinks
 lrwxr-xr-x   1 me  admin      57 May 21 13:43 shopp ->
 /Users/me/Dropbox/Development/Repositories/shopp
 lrwxr-xr-x   1 me  admin      66 May 27 19:37 shopp-reviews ->
 /Users/me/Dropbox/Development/Repositories/shopp-reviews/

 }}}

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


More information about the wp-trac mailing list