[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:09:47 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 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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28441#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list