Make WordPress Core

Ticket #48289: 48289.1.diff

File 48289.1.diff, 447 bytes (added by itowhid06, 5 years ago)

updated patch using DIRECTORY_SEPARATOR

  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 979536f751..e67ca38925 100644
    a b function path_is_absolute( $path ) { 
    19871987                return false;
    19881988        }
    19891989
    1990         // Windows allows absolute paths like this.
    1991         if ( preg_match( '#^[a-zA-Z]:\\\\#', $path ) ) {
     1990        // We are on Windows.
     1991        if ( '/' !== DIRECTORY_SEPARATOR ) {
    19921992                return true;
    19931993        }
    19941994