[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 15:45: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 | Keywords:
Focuses: |
--------------------------+-----------------------------
It seems there is still a scenario where symlinked plugins do not work
seamlessly in WordPress 3.9.1.
Here is my setup:
Plugin location on disk:
/Users/me/Dropbox/Development/Repositories/shopp-arrange/trunk
Symlinked location:
/Applications/MAMP/htdocs_test/wp-content/plugins/trunk
When running ls in the plugins directory, it returns this in terminal:
trunk -> /Users/me/Dropbox/Development/Repositories/shopp-arrange/trunk/
Additionally, `$wp_plugin_paths` contains the following entry:
[/Applications/MAMP/htdocs_test/wp-content/plugins/trunk] =>
/Users/me/Dropbox/Development/Repositories/shopp-arrange/trunk
Which looks exactly right. `wp_register_plugin_realpath` seems to be
doing its job.
The issue is that my activation hook isn't running. I finally decided to
look at the actions queue and see what's registered there. I found:
{{{
[activate_shopp-arrange/trunk/shopp-arrange.php] => Array
(
[10] => Array
(
[000000002f54486c000000013e83cf29activate] => Array
(
[function] => Array
(
[0] => ShoppArrange Object
(
[table_name] =>
wp_cgd_term_order
[prefix] => shopp_arrange
[settings] =>
)
[1] => activate
)
[accepted_args] => 1
)
)
)
}}}
This does not look correct at all.
After spending a couple of hours looking at this, I decided to temporarily
give up the search and report the issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28441>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list