[wp-trac] [WordPress Trac] #3507: Plugin Listing Counts Symlinks as another plugin

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 30 05:11:30 GMT 2006


#3507: Plugin Listing Counts Symlinks as another plugin
----------------------------+-----------------------------------------------
 Reporter:  technosailor    |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.0.6    
Component:  Administration  |     Version:           
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 Symlinks are symlinks and shouldn't be counted as an additional file.
 However, the way the WP code reads at the moment, the only thing that is
 checked in determining if a plugin should be listed is if it is actually a
 file (checks true as symlinks point to files) and if it is a directory,
 looks for the file one directory down.

 Proper behavior is to determine if the file is a file and that it is not a
 symbolic link.

 Patch attached for the 2.0 branch. Imagine it should go in 2.1 as well.
 {{{
 drwxr-xr-x   2 theafter theafter  4096 Dec 29 23:44 wp-mobile
 lrwxrwxrwx   1 theafter theafter    76 Dec 29 23:44 wp-mobile.plugin.php
 -> /home/theafter/public_html/wp-content/plugins/wp-mobile/wp-
 mobile.plugin.php
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3507>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list