Changeset 31090 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 01/08/2015 07:04:40 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/file.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r31077 r31090 930 930 $method = 'direct'; 931 931 $GLOBALS['_wp_filesystem_direct_method'] = 'file_owner'; 932 } else if ( $allow_relaxed_file_ownership ) {932 } elseif ( $allow_relaxed_file_ownership ) { 933 933 // The $context directory is writable, and $allow_relaxed_file_ownership is set, this means we can modify files 934 934 // safely in this directory. This mode doesn't create new files, only alter existing ones. … … 1039 1039 } 1040 1040 1041 if ( ( defined( 'FTP_SSH') && FTP_SSH ) || ( defined('FS_METHOD') && 'ssh2' == FS_METHOD ) )1041 if ( ( defined( 'FTP_SSH' ) && FTP_SSH ) || ( defined( 'FS_METHOD' ) && 'ssh2' == FS_METHOD ) ) { 1042 1042 $credentials['connection_type'] = 'ssh'; 1043 else if ( (defined('FTP_SSL') && FTP_SSL) && 'ftpext' == $type )//Only the FTP Extension understands SSL1043 } elseif ( ( defined( 'FTP_SSL' ) && FTP_SSL ) && 'ftpext' == $type ) { //Only the FTP Extension understands SSL 1044 1044 $credentials['connection_type'] = 'ftps'; 1045 else if ( !empty($_POST['connection_type']) )1045 } elseif ( ! empty( $_POST['connection_type'] ) ) { 1046 1046 $credentials['connection_type'] = wp_unslash( $_POST['connection_type'] ); 1047 else if ( !isset($credentials['connection_type']) )//All else fails (And it's not defaulted to something else saved), Default to FTP1047 } elseif ( ! isset( $credentials['connection_type'] ) ) { //All else fails (And it's not defaulted to something else saved), Default to FTP 1048 1048 $credentials['connection_type'] = 'ftp'; 1049 1049 } 1050 1050 if ( ! $error && 1051 1051 (
Note: See TracChangeset
for help on using the changeset viewer.