Ticket #26091: 26091.patch
File 26091.patch, 933 bytes (added by , 10 years ago) |
---|
-
tests/phpunit/includes/mock-fs.php
81 81 * Locates a filesystem node for the parent of the given item 82 82 */ 83 83 private function locate_parent_node( $path ) { 84 return $this->locate_node( trailingslashit( dirname( $path ) ) ); 84 $dirname = str_replace( '\\', '/', dirname( $path ) ); 85 return $this->locate_node( trailingslashit( $dirname ) ); 85 86 } 86 87 87 88 // Here starteth the WP_Filesystem functions. … … 91 92 92 93 $parent_node = $this->locate_parent_node( $path ); 93 94 if ( ! $parent_node ) { 94 $this->mkdir( dirname( $path ) ); 95 $dirname = str_replace( '\\', '/', dirname( $path ) ); 96 $this->mkdir( $dirname ); 95 97 $parent_node = $this->locate_parent_node( $path ); 96 98 if ( ! $parent_node ) 97 99 return false;