[wp-trac] [WordPress Trac] #36308: get_attached_file() destroys file paths on Windows

WordPress Trac noreply at wordpress.org
Fri Oct 28 16:26:37 UTC 2022


#36308: get_attached_file() destroys file paths on Windows
---------------------------------------------+-----------------------
 Reporter:  Whissi                           |       Owner:  antpb
     Type:  defect (bug)                     |      Status:  reopened
 Priority:  normal                           |   Milestone:  6.2
Component:  Media                            |     Version:  4.4.2
 Severity:  normal                           |  Resolution:
 Keywords:  has-unit-tests has-testing-info  |     Focuses:
---------------------------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:61 desrosj]:

 May I also suggest that this problem (and perhaps a link to
 https://core.trac.wordpress.org/ticket/56924) is mentioned on the docblock
 of `path_is_absolute()`, and perhaps `path_join()`. Seems the latter is
 used quite often and this slowdown may be causing other problems too.

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


More information about the wp-trac mailing list