[wp-trac] [WordPress Trac] #18501: plugin_dir_path() returns unsanitized path on Windows installs

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 23 18:40:29 UTC 2011


#18501: plugin_dir_path() returns unsanitized path on Windows installs
-----------------------------+-------------------------------------
 Reporter:  johnjamesjacoby  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Plugins          |    Version:
 Severity:  normal           |   Keywords:  needs-testing has-patch
-----------------------------+-------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18501>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list