Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #57516, comment 7


Ignore:
Timestamp:
01/20/2023 07:10:10 PM (4 years ago)
Author:
costdev

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57516, comment 7

    v1 v2  
    11I've submitted [https://github.com/WordPress/wordpress-develop/pull/3877 PR 3877].
    22
    3 There's an additional benefit for the filesystem classes that by using `$path = trailingslashit( $path )` before the `while()/foreach()` loops, the code is easier to read, and unnecessary concatenation isn't done in every iteration of the FTP loops.
     3There's an additional benefit for the filesystem classes that by using `$path = trailingslashit( $path )` before the `while()/foreach()` loops, the code is easier to read, and unnecessary concatenation isn't done in every iteration of the loops.
    44
    55All uses of `$path` after the PR's `$path = trailingslashit( $path )` were previously concatenated, so this doesn't cause any issues later.