WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54166, comment 17


Ignore:
Timestamp:
10/11/2021 06:14:21 AM (8 weeks ago)
Author:
afragen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54166, comment 17

    initial v1  
    1 Just for reference, if `rename()` fails the function reverts to `copy_dir()`, which was there previously. File systems not having a `rename(j` command should continue to function as they did previously.
     1Just for reference, if `rename()` fails the function reverts to `copy_dir()`, which was there previously. File systems not having a `rename()` command should continue to function as they did previously.
    22
    33The previous flow always emptied the specific plugin folder in `wp-content/plugins/` that's why a failed update would leave an empty folder. The `$clear_destination` parameter is always true when updating. https://github.com/WordPress/wordpress-develop/blob/6367c01844e34dd372b999beb0e370f52d8c42d5/src/wp-admin/includes/class-plugin-upgrader.php#L222-L239