[wp-trac] [WordPress Trac] #48289: wp_normalize_path() breaks path_is_absolute() in Windows.

WordPress Trac noreply at wordpress.org
Thu Apr 8 07:28:58 UTC 2021


#48289: wp_normalize_path() breaks path_is_absolute() in Windows.
----------------------------------------+-----------------------------
 Reporter:  paultgoodchild              |       Owner:  SergeyBiryukov
     Type:  defect (bug)                |      Status:  reviewing
 Priority:  normal                      |   Milestone:  Future Release
Component:  Filesystem API              |     Version:  5.2.3
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+-----------------------------

Comment (by nlpro):

 Perhaps the description of the path_is_absolute() function as provided in
 the Code Reference on developer.wordpress.org:

   Test if a given filesystem path is absolute.

 should be changed to something like:

   Test if a given (non normalized) filesystem path is absolute.

 It seems WordPress Core distinguishes between functional (as is) paths and
 (normalized) display/comparable paths.

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


More information about the wp-trac mailing list