WordPress.org

Make WordPress Core

Ticket #17846: 17846.patch

File 17846.patch, 643 bytes (added by kurtpayne, 4 years ago)

Refreshed patch

  • wp-admin/includes/class-wp-filesystem-ftpext.php

     
    328328                                $b['time'] = strtotime( sprintf('%d %s %d %02d:%02d', $b['day'], $b['month'], $b['year'], $b['hour'], $b['minute']) ); 
    329329                                $b['name'] = $lucifer[8]; 
    330330                        } 
     331                         
     332                        // Replace symlinks formatted as "source -> target" with just the source name 
     333                        $b['islink'] && $b['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $b['name'] ); 
    331334                } 
    332335 
    333336                return $b;