Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#24107 closed defect (bug) (duplicate)

Plugin/Theme installer asks for connection info when wp-content is writable but wp-admin is not

Reported by: peckjon's profile peckjon Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Filesystem API Keywords:
Focuses: Cc:

Description

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.

Change History (5)

#1 @peckjon
11 years ago

  • Summary changed from Plugin installer asks for connection info when wp-content is writable but wp-admin is not to Plugin/Theme installer asks for connection info when wp-content is writable but wp-admin is not

#2 @peckjon
11 years ago

  • Cc peckjon@… added

#3 @SergeyBiryukov
11 years ago

  • Component changed from Plugins to Filesystem

#5 @dd32
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

The suggestion here was actually fixed in [11499] / #9936

The suggestion here isn't actually the cause of the issue at hand though, that's covered by #10205 / #10424

Note: See TracTickets for help on using tickets.