WordPress.org

Make WordPress Core

Ticket #14401: 14401.diff

File 14401.diff, 554 bytes (added by dd32, 7 years ago)
  • class-wp-filesystem-base.php

     
    152152                if ( isset($this->cache[ $folder ] ) )
    153153                        return $this->cache[ $folder ];
    154154
    155                 if ( $this->exists($folder) ) { //Folder exists at that absolute path.
     155                if ( $this->is_dir($folder) ) { //Folder exists at that absolute path.
    156156                        $folder = trailingslashit($folder);
    157157                        $this->cache[ $folder ] = $folder;
    158158                        return $folder;