Closed matheuseduardo closed 12 years ago
Hi, thanks for helping out! I don't have a Windows install to test against, so I never know if I might break something there.
The problem with your solution is that it removes the functionality provided by the explode
function (I did not write this part, but it was contributed by another developer) which allows you to use a symbolic link to link the plugin into WordPress's plugins directory.
I wouldn't want to sacrifice that functionality. Is there a way we can have both things work?
I bumped into the same problem today (XAMPP, WinXp). Test this on Linux, but it should work:
$parts = explode(DIRECTORY_SEPARATOR, dirname( __FILE__ ));
return array_pop($parts);
@nevvermind that works on my machine. It fixes the problem on Windows? If so, I'll push up the change. Thanks.
Yes, it does fix the Win problem.
in windows xammp server was not working, because the function 'plugin_basename( FILE )' return 'wordpress-console/wordpress-console.php', but the constant DIRECTORY_SEPARATOR it '\', so, explode (function) doesn't work properly. so I sugggest this modification.
any doubt, send me!