Fix for WP plugin Flickr Photo Album
I use the WP plugin Flickr Photo Album a few years. Together with Firefox plugin Fotofox it makes inserting procedure of images into posts very simple. However, I found a problems with that plugin recently. I couldn’t activate it anymore. The page is just reloaded and plugin’s status remained ‘Inactive’. This simple modification fixes the problem. In the file tantan-flickr/flickr/class-admin.php change add_action to register_activation_hook function as follows.
add_action('admin_menu', array(&$this, 'addhooks'));
//add_action('activate_tantan-flickr/flickr.php', array(&$this, 'activate'));
register_activation_hook(__FILE__, array(&$this, 'activate'));
//add_action('deactivate_tantan-flickr/flickr.php', array(&$this, 'deactivate'));
register_deactivation_hook(__FILE__, array(&$this, 'deactivate'));
add_action('load-upload.php', array(&$this, 'addPhotosTab'));