Permission check prevents detection of 'direct' installation method for plugins
|Reported by:||dennisjac||Owned by:|
I run a Wordpress installation where permissions are primarily handled using groups and not users. Unfortunately in order to determine whether the 'direct' plugin installation method can be used the code checks not only if the directory is writable but also if it has the same UID as the executing user. This restriction isn't necessary and actually prevents users unnecessarily from using the 'direct' method even though they should be able to.
I attached a patch that fixes this issue. After applying the patch I can install plugins using the 'direct' method even when the folder doesn't belong to the apache user but write access is granted using group permissions.