Plugin Listing Counts Symlinks as another plugin
|Reported by:||technosailor||Owned by:|
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