[wp-trac] [WordPress Trac] #17373: manual plugin upload

WordPress Trac wp-trac at lists.automattic.com
Wed May 11 07:47:56 UTC 2011


#17373: manual plugin upload
--------------------------+-----------------------------
 Reporter:  dorondoron    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Filesystem    |    Version:  3.1.1
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 when trying to upload a zipped plugin file manually i got a form asking
 for ftp credentials. this only happened on a linux machine while on
 windows the plugin would get unpacked and install automatically.

 i looked around a bit and got to a function called get_filesystem_method()
 in /wp-admin/includes/file.php where getmyuid() is tested against the uid
 of the user owning a test file. after reading the enlightening comment in
 http://www.php.net/getmyuid i realized this is the reason for the unwanted
 behavior and posix_getuid() should be used instead.

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


More information about the wp-trac mailing list