It seems to remove a slash in a JSON output
-
We have a strange issue of incompatibily between WP-Performance and BB Page Builder. The Publish action from the page builder fails because WP-Performance seems to make the JSON response invalid.
The request which is made is a POST request to root (https://domain.com/) and the response is like this:
When WP-Performance is enabled (INVALID JSON):
{"posts":[...],"authors":{"4":{"name":"Tony","avatar":"<img height=\"30\" width=\"30\" class=\"avatar avatar-30 photo\" src=\"https:\/\/secure.gravatar.com\/avatar\/a....3?s=96&d=mm&r=g\" \>"}}}
When WP-Performance is NOT enabled (VALID JSON):
{"posts":[...],"authors":{"4":{"name":"Tony","avatar":"<img height=\"30\" width=\"30\" class=\"avatar avatar-30 photo\" src=\"https:\/\/secure.gravatar.com\/avatar\/a....3?s=96&d=mm&r=g\" \/>"}}}
Look at the last characters:
\/>
vs\>
.Where is the place in the code where WP-Performance replaces that and why?
Is there a configuration to prevent that from happening?
What file can we edit to exclude that replacement?
- The topic ‘It seems to remove a slash in a JSON output’ is closed to new replies.