WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #38946, comment 3


Ignore:
Timestamp:
11/26/2016 03:20:24 PM (3 years ago)
Author:
shivapoudel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38946, comment 3

    initial v1  
    11Replying to [comment:1 dd32]:
    22
    3 @dd32 It wouldn't be possible to simply guess the basename of package, strip `.zip` extension and set that match as subdirectory for `destination` arg. This is because it may result subdirectory like `uploaded-demo-pack-{1|2|3|..}` and inside zip folder the directory name is predefined and look like `uploaded-demo-pack`.
     3It wouldn't be possible to simply guess the basename of package, strip `.zip` extension and set that match as subdirectory for `destination` arg. This is because it may result subdirectory like `uploaded-demo-pack-{1|2|3|..}` and inside zip folder the directory name is predefined and look like `uploaded-demo-pack`.
    44
    55This above patch tries to implement `protect_destination` arg and have defaults set to false :)