[wp-trac] [WordPress Trac] #36273: update_attached_file() on Windows will result in invalid image path when using native Windows directory separators

WordPress Trac noreply at wordpress.org
Fri Mar 18 13:17:39 UTC 2016


#36273: update_attached_file() on Windows will result in invalid image path when
using native Windows directory separators
------------------------------------------+------------------------------
 Reporter:  Whissi                        |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Media                         |     Version:  4.4.2
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => needs-patch needs-unit-tests
 * component:  General => Media


Comment:

 Sounds like `update_attached_file()` should pass `$file` through
 `wp_normalize_path()`.

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


More information about the wp-trac mailing list