diff --git a/src/wpephpcompat.php b/src/wpephpcompat.php index 2f01622..fa50186 100644 --- a/src/wpephpcompat.php +++ b/src/wpephpcompat.php @@ -464,6 +464,10 @@ public function clean_after_scan() { * @return null */ private function add_directory( $name, $path ) { + if ( DIRECTORY_SEPARATOR == '\\' ) { + $path = str_replace( '\\', '/', $path ); + } + $dir = array( 'post_title' => $name, 'post_content' => $path,