[wp-trac] Re: [WordPress Trac] #7487: Exclude files and folders from automatic plugin upgrade

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 9 13:09:31 GMT 2008


#7487: Exclude files and folders from automatic plugin upgrade
-------------------------+--------------------------------------------------
 Reporter:  alexrabe     |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  low          |    Milestone:  2.7      
Component:  General      |      Version:  2.7      
 Severity:  normal       |   Resolution:           
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by alexrabe):

 I don't see here any security risk, because the uninstall routine should
 remove all files.Also I don't like to store plugin related files outside
 the plugin dir, except media files (videos, images etc) which I never
 store inside the plugin folder. Let me give you three examples :

 a) Plugin related CSS files : In my plugin NextGEN Gallery I store the
 custom CSS files for the gallery design. Of course they can be added to
 the theme folder, but the user must copy thoses files or edit the
 style.css when they change the theme. When you remove the plugin you can
 forgot then to remove the css files. The same happend if you add a new
 font for the watermark function.

 b) Adding of additional resources/files : In my plugin NextGEN Gallery and
 wordTube (see aslo Viper' Video Quicktags) I include a flash player for
 images or videos. This flash player is not part of the plugin GPL license
 and in the past I didn't include this flash player, so that the user must
 upload the file one time and agree to the creative commons license from
 the author. Since the automatic upgrade I include this into the repo
 because it's annoying to reupload the file after each upgrad. In my
 opinion it's a bad plugin design if I store it outside...

 c) Special path constant : In a very seldom case it should be needed to
 add a custom path to a php file. Yes, all settings should be stored in the
 database, but if you move the wp-content dir outside the classic path
 structure I need the path to wp-load.php. I planned to stored this path
 constant in my plugin dir.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7487#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list