[wp-trac] [WordPress Trac] #24107: Plugin installer asks for connection info when wp-content is writable but wp-admin is not
WordPress Trac
noreply at wordpress.org
Tue Apr 16 21:39:35 UTC 2013
#24107: Plugin installer asks for connection info when wp-content is writable but
wp-admin is not
-----------------------------+--------------------------
Reporter: peckjon | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Plugins
Version: | Severity: normal
Keywords: |
-----------------------------+--------------------------
For background, please see [http://www.chrisabernethy.com/why-wordpress-
asks-connection-info/]
When installing a new plugin or theme, WP first checks to see if it can
directly write to the filesystem. If so, it proceeds. If not, it asks
the user for FTP connection info.
The directory to which it NEEDS access is /wp-content
However, the directory it CHECKS is /wp-admin
get_filesystem_method() should be changed (or parameterized) to check only
/wp-content in cases where /wp-admin access is not needed. This will
allow installations to have a higher filesystem-security setting for /wp-
admin than for /wp-content, while still utilizing direct filesystem
access.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24107>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list