Ticket #6226: ftp-i18n.diff
| File ftp-i18n.diff, 2.4 KB (added by nbachiyski, 5 years ago) |
|---|
-
wp-admin/includes/class-wp-filesystem-ftpext.php
95 95 if( empty( $base ) ) $base = '/'; 96 96 if( '/' != substr($base, -1) ) $base .= '/'; 97 97 98 if($echo) echo __('Changing to ') . $base .'<br>';98 if($echo) printf( __('Changing to %s') . '<br/>', $base ); 99 99 if( false === $this->chdir($base) ) 100 100 return false; 101 101 102 102 if( $this->exists($base . 'wp-settings.php') ){ 103 if($echo) echo __('Found ') . $base . 'wp-settings.php<br>';103 if($echo) printf( __('Found %s'), $base . 'wp-settings.php<br/>' ); 104 104 $this->wp_base = $base; 105 105 return $this->wp_base; 106 106 } … … 115 115 116 116 foreach($arrPath as $key=>$folder){ 117 117 if( $this->is_dir($base . $folder) ){ 118 if($echo) echo __('Found ') . $folder . ' ' . __('Changing to') . ' ' . $base . $folder . '/<br>';118 if($echo) echo sprintf( __('Found %s'), $folder ) . ' ' . sprintf( __('Changing to %s') . '<br/>', $base . $folder . '/' ); 119 119 return $this->find_base_dir($base . $folder . '/',$echo); 120 120 } 121 121 } -
wp-admin/includes/class-wp-filesystem-ftpsockets.php
97 97 if( empty( $base ) ) $base = '/'; 98 98 if( '/' != substr($base, -1) ) $base .= '/'; 99 99 100 if($echo) echo __('Changing to ') . $base .'<br>';100 if($echo) printf( __('Changing to %s') . '<br/>', $base ); 101 101 if( false === $this->chdir($base) ) 102 102 return false; 103 103 104 104 if( $this->exists($base . 'wp-settings.php') ){ 105 if($echo) echo __('Found ') . $base . 'wp-settings.php<br>';105 if($echo) printf( __('Found %s'), $base . 'wp-settings.php<br/>' ); 106 106 $this->wp_base = $base; 107 107 return $this->wp_base; 108 108 } … … 117 117 118 118 foreach($arrPath as $key=>$folder){ 119 119 if( $this->is_dir($base . $folder) ){ 120 if($echo) echo __('Found ') . $folder . ' ' . __('Changing to') . ' ' . $base . $folder . '/<br>';120 if($echo) echo sprintf( __('Found %s'), $folder ) . ' ' . sprintf( __('Changing to %s') . '<br/>', $base . $folder . '/' ); 121 121 return $this->find_base_dir($base . $folder . '/',$echo); 122 122 } 123 123 }
