Skip to content

Commit 13969c2

Browse files
committed
Fixed: Error loading plugin meta on Windows
1 parent 07282fd commit 13969c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"toolkit-version": "0.3.3",
2+
"toolkit-version": "0.3.4",
33
"prefix": "wptk",
44
"object_cache": {
55
"group": "default_cache",

core/ToolKit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function get_current_plugin_meta( $type = ConfigRegistry ) {
9999
foreach( get_plugins() as $key => $plugin ) {
100100

101101
if( strstr( $key, trailingslashit( $plugin_data['slug'] ) ) ) {
102-
$parts = explode( DIRECTORY_SEPARATOR, $key );
102+
$parts = explode( '/', $key );
103103
$plugin_data['identifier'] = $key;
104104
$plugin_data['file'] = end( $parts );
105105
$plugin_data['meta'] = get_plugin_data( $plugin_data['path'] . $plugin_data['file'] );

0 commit comments

Comments
 (0)