Make WordPress Core

Ticket #59729: path_is_absolute.patch

File path_is_absolute.patch, 417 bytes (added by mt8.biz, 19 months ago)
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index cb490ee176..c560854257 100644
    a b function path_is_absolute( $path ) { 
    21252125                return true;
    21262126        }
    21272127
    2128         if ( strlen( $path ) === 0 || '.' === $path[0] ) {
     2128        if ( ! is_string( $path ) || strlen( $path ) === 0 || '.' === $path[0] ) {
    21292129                return false;
    21302130        }
    21312131