﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	focuses
49658	Incorrect Upload Directory path using wp_upload_dir()	amitkumarsingh		"I usually don't use windows when coding with WordPress.
I was creating a file in the uploads directory and decided to use wp_upload_dir() to get the upload directory path. When I printed the result, I noticed that the path returned was incorrect.
Below is the print_r result of the wp_upload_dir() function:
{{{
Array
(
    [path] => C:\xampp\htdocs\test/wp-content/uploads/2020/03
    [url] => http://localhost/jan/wp-content/uploads/2020/03
    [subdir] => /2020/03
    [basedir] => C:\xampp\htdocs\test/wp-content/uploads
    [baseurl] => http://localhost/jan/wp-content/uploads
    [error] => 
)
}}}
As soon as the path enters in the WordPress directory, backslashes are converted to front slashes."	defect (bug)	new	normal	Awaiting Review	Upload	5.3.2	normal		reporter-feedback		
