Skip to content

Commit e02a5b2

Browse files
authored
Merge pull request #547 from xwp/fix/539-windows-path
Fix directory separator issue in Windows
2 parents b682259 + d51ec2f commit e02a5b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/class-plugin-base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function locate_plugin() {
184184
}
185185

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

189189
$dir_url = content_url( trailingslashit( $plugin_path ) );
190190
$dir_path = $plugin_dir;

0 commit comments

Comments
 (0)