[wp-trac] [WordPress Trac] #15134: WordPress should not try to remove theme's or plugin's directory recursively if the directory is a symlink
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 16 20:10:30 UTC 2010
#15134: WordPress should not try to remove theme's or plugin's directory
recursively if the directory is a symlink
---------------------------------+------------------------------------------
Reporter: vladimir_kolesnikov | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Upgrade/Install | Version:
Severity: normal | Resolution: wontfix
Keywords: |
---------------------------------+------------------------------------------
Comment(by vladimir_kolesnikov):
Replying to [comment:2 scribu]:
> Another thing to note is that activation hooks won't work with sym-
linked directories.
Have to disagree:
{{{
<?php
/*
Plugin Name: Test Plugin
Description: Test Plugin
Version: 1.0
*/
function test_activate()
{
wp_die("Activation hook");
}
function test_deactivate()
{
wp_die("Deactivation hook");
}
add_action('activate_test.php', 'test_activate');
add_action('deactivate_test.php', 'test_deactivate');
}}}
Works fine.
{{{
# pwd
/home/user1/htdocs/wp-content/plugins
# ls -la test.php
lrwxrwxrwx 1 user1 user1 37 2010-10-16 15:59 test.php -> /var/www/em-stuff
/wp-plugins/test.php
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15134#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list