Changeset 35663
- Timestamp:
- 11/18/2015 05:21:37 PM (10 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
-
class-wp-filesystem-ftpext.php (modified) (1 diff)
-
class-wp-filesystem-ssh2.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-ftpext.php
r35476 r35663 76 76 77 77 if ( ! $this->link ) { 78 $this->errors->add('connect', sprintf(__('Failed to connect to FTP Server %1$s:%2$s'), $this->options['hostname'], $this->options['port'])); 79 return false; 80 } 81 82 if ( ! @ftp_login($this->link,$this->options['username'], $this->options['password']) ) { 83 $this->errors->add('auth', sprintf(__('Username/Password incorrect for %s'), $this->options['username'])); 78 $this->errors->add( 'connect', 79 /* translators: %s: hostname:port */ 80 sprintf( __( 'Failed to connect to FTP Server %s' ), 81 $this->options['hostname'] . ':' . $this->options['port'] 82 ) 83 ); 84 return false; 85 } 86 87 if ( ! @ftp_login( $this->link,$this->options['username'], $this->options['password'] ) ) { 88 $this->errors->add( 'auth', 89 /* translators: %s: username */ 90 sprintf( __( 'Username/Password incorrect for %s' ), 91 $this->options['username'] 92 ) 93 ); 84 94 return false; 85 95 } -
trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php
r35661 r35663 118 118 /* translators: %s: hostname:port */ 119 119 sprintf( __( 'Failed to connect to SSH2 Server %s' ), 120 $this->options['hostname'] .':'.$this->options['port']120 $this->options['hostname'] . ':' . $this->options['port'] 121 121 ) 122 122 );
Note: See TracChangeset
for help on using the changeset viewer.