I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: error in page source

dashed-slug.net Forums General discussion error in page source Reply To: error in page source

#2562
alexg
Keymaster

Hello,

This does not look like an error.

This is some data that the PHP backend passes to the frontend JavaScript code. The mechanism used is wp_localize_script() which is a WordPress function used to attach custom data to scripts. See more here: https://codex.wordpress.org/Function_Reference/wp_localize_script

However the data you show me seems to be HTML-escaped. I do not know why you see this data escaped. When I inspect a page using Firefox I get this:

EDIT: Correction, your data is not escaped, it looks good. I was looking at a copy of your message in my email where it was HTML-escaped.

/* 

1. Do you get an error in your JavaScript console?
2. Which browser and version are you using?