WordPress.org

Make WordPress Core

Opened 12 months ago

Closed 7 months 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 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)

comment:1 peckjon12 months 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

comment:2 peckjon12 months ago

  • Cc peckjon@… added

comment:3 SergeyBiryukov12 months ago

  • Component changed from Plugins to Filesystem

comment:5 dd327 months 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.