plugin_dir_path() returns unsanitized path on Windows installs
|Reported by:||johnjamesjacoby||Owned by:|
Currently plugin_dir_path() only returns the result of dirname( $file ), which can produce mixed results on local Windows installations.
Attached patch takes pieces from plugin_basename() and plugins_url() to guarantee a working and accurate plugin directory path is returned in all operating systems.
See #BB1596 (and associated revisions) for back-story.