[wp-trac] [WordPress Trac] #47185: Media files cannot be deleted under Windows since 5.2

WordPress Trac noreply at wordpress.org
Fri May 17 13:16:37 UTC 2019


#47185: Media files cannot be deleted under Windows since 5.2
------------------------------+-----------------------------
 Reporter:  tonybogdanov      |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  accepted
 Priority:  normal            |   Milestone:  5.2.1
Component:  Filesystem API    |     Version:  5.2
 Severity:  critical          |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch => has-patch commit


Comment:

 The gist is that `wp_normalize_path()` needs to be applied both before and
 after `realpath()`, which may seem redundant at a glance, but was deemed
 necessary when testing the original [43392] changeset.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47185#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list