wp_localize_script escapes url string.
|Reported by:||DennisSmolek||Owned by:|
When working down this tutorial http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/
(mentioned in WP CODEX)
and the expected result is:
But on even a fresh install I'm getting:
It seems others are getting this too:
Now the stackoverflow guy says his works either way. Mine doesn't. If I manually write the code in the header I get it working but with such a common tutorial I figured it should be working right.
I know it now uses json_encode() which I'm guessing is doing the slashing. I can't seem to figure out why it's doing it though so I've done a fresh install with the same results so its either WP or my server.