I was digging through this plugin in the context of Infinity support, and just happened to notice that it uses the DIRECTORY_SEPARATOR constant.
I learned that hard way that it's a really bad idea to use this when formatting file and url paths. All PHP file functions do the conversion automagically. A quick grep of WP core will show you that it's used extremely sparingly, and even then only when it's handling very specific MS Server stuff.
I was digging through this plugin in the context of Infinity support, and just happened to notice that it uses the DIRECTORY_SEPARATOR constant.
I learned that hard way that it's a really bad idea to use this when formatting file and url paths. All PHP file functions do the conversion automagically. A quick grep of WP core will show you that it's used extremely sparingly, and even then only when it's handling very specific MS Server stuff.