Info
- 2 posts
- 2 voices
- Started 1 year ago by Dr4ke
- Latest reply from chrishajer
Trouble with actiwation plugins in subfolders and solution
-
- Posted 1 year ago #
Hey
When I was writing plugin last time they dont want run install function after activation. Trouble was in position of plugin file in subfolder in 'my-plugins'.
When I looked in plugins.php I saw the problem. Script make 'do_action()' on overall path to plugin from my-plugins. For example: 'plugin/plugin.php'. So orginal function have to be 'bb_activate_plugin_plugin/plugin' what in incorrect. I wrote few lines and all works fine.
After line 66 in bbpress/bb-admin/plugins.php:
$posSlash = strpos($plugin,'/'); if(intval($posSlash) != 0){ $plugin = substr($plugin,$posSlash+1); }After that all works fine :) May be included in next bbPress version.
Regards
D. -
- Posted 1 year ago #
If you think this is a problem with the bbPress core, please open a ticket and submit a patch at http://trac.bbpress.org/
You can log in there with a WordPress.org account if you have one.
-
This topic is
closed