I have Wordpress 4.4 installed localy on wamp server 2.5 x64 on Windows 10 and noticed that:


returns this:



  1. What's the reason for those two sequential slashes, if this is not a bug?
  2. Why Wordpress does not handle DS correctly (regarding slashes and backslashes)? is this something up to the web server or the script itself?
  • Is the folder called my-site or my-site content? Sometimes a // can represent a space in a file path.
    – erwstout
    Feb 22, 2016 at 22:46

1 Answer 1


It is a bug the get_template_directory(); should not return a string that looks like that, try making another installation of WordPress, and echo the get_template_directory(); and see if the output is the same, if it is not then there is something wrong with the first installation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.