changeset 204 | 09a1c134465b |
parent 194 | 32102edaa81b |
--- a/web/wp-admin/includes/class-wp-filesystem-ftpext.php Wed Dec 19 12:35:13 2012 -0800 +++ b/web/wp-admin/includes/class-wp-filesystem-ftpext.php Wed Dec 19 17:46:52 2012 -0800 @@ -330,6 +330,10 @@ } } + // Replace symlinks formatted as "source -> target" with just the source name + if ( $b['islink'] ) + $b['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $b['name'] ); + return $b; }