[wp-trac] [WordPress Trac] #36831: wp_normalize_path in plugin_dir_path

WordPress Trac noreply at wordpress.org
Fri May 13 10:06:17 UTC 2016

#36831: wp_normalize_path in plugin_dir_path
 Reporter:  sebastian.pisula            |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Plugins                     |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:

Comment (by sebastian.pisula):

 I use Windows and XAMPP. For code
 var_dump( plugin_dir_path( __FILE__ ));

 I have
 `string(55) "D:\xampp\htdocs\wordpress\wp-content\plugins\my-plugin/"`

 but should be

 `string(55) "D:/xampp/htdocs/wordpress/wp-content/plugins/my-plugin/"`

Ticket URL: <https://core.trac.wordpress.org/ticket/36831#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list