Skip to content

Commit

Permalink
Merge pull request #201 from xwp/fix/194-separator
Browse files Browse the repository at this point in the history
Fix directory separator issue in Windows
  • Loading branch information
spacedmonkey committed Aug 3, 2020
2 parents b946d14 + 4f6965f commit 4eb4cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/class-plugin-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function locate_plugin() {
}

$plugin_dir = dirname( dirname( $file_name ) );
$plugin_path = $this->relative_path( $plugin_dir, basename( content_url() ), \DIRECTORY_SEPARATOR );
$plugin_path = $this->relative_path( $plugin_dir, basename( content_url() ), '/' );

$dir_url = content_url( trailingslashit( $plugin_path ) );
$dir_path = $plugin_dir;
Expand Down

0 comments on commit 4eb4cab

Please sign in to comment.