Make WordPress Core


Ignore:
Timestamp:
10/28/2022 03:16:29 PM (2 years ago)
Author:
antpb
Message:

Media: Reverts get_attached_file() changes for normalized Windows paths.

Based on feedback from network storage configurations there was a noticed slowdown due to the usage of the path_join() function. This needs more time to find a workaround.

Follow-up to [53934].
Props mreishus, SergeyBiryukov, desrosj, mikeschroder.
Reverts [53934].
See #56924.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions.php

    r54509 r54712  
    106106            'C:\\WINDOWS',
    107107            '\\\\sambashare\\foo',
    108             'c:/',
    109             'c://',
    110             '//',
    111             'c:/FOO',
    112             '//FOO',
    113             'C:/WWW/Sites/demo/htdocs/wordpress/wp-content/uploads/2016/03/example.jpg',
    114             '//ComputerName/ShareName/SubfolderName/example.txt',
    115108        );
    116109        foreach ( $absolute_paths as $path ) {
     
    127120            '../',
    128121            '../foo.bar',
    129             'foo.bar',
    130122            'foo/bar',
    131123            'foo',
    132124            'FOO',
    133125            '..\\WINDOWS',
    134             '..//WINDOWS',
    135             'c:',
    136             'C:',
    137126        );
    138127        foreach ( $relative_paths as $path ) {
Note: See TracChangeset for help on using the changeset viewer.