Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/wpephpcompat.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down