[wp-trac] [WordPress Trac] #30921: "Cannot Remove Old Plugin" Obliterates files!

WordPress Trac noreply at wordpress.org
Fri Mar 27 02:46:03 UTC 2015


#30921: "Cannot Remove Old Plugin" Obliterates files!
-----------------------------+------------------------------
 Reporter:  johnstonphilip   |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  4.1
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by johnstonphilip):

 I'm not totally sure of how WordPress checks if a folder/directory is
 writable, but I do know that the owner has to be www-data in order for
 WordPress to write to it.

 Could we potentially use php's filegroup function to check the owner is
 www-data prior to doing the upgrade?
 http://php.net/manual/en/function.filegroup.php

 (I wish I had more time to delve into the code on this, but alas I do not
 at this exact moment in time)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30921#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list