[BUG] Returns invalid JSON when warning is issued and WP_DEBUG is enabled
-
To reproduce:
1. Enabled WP_DEBUG
2. Make an API request that triggers a warning, such as “Notice: Undefined index: thumbnail…”
3. This warning gets sent along with the JSON data returned, causing it to be malformed
The topic ‘[BUG] Returns invalid JSON when warning is issued and WP_DEBUG is enabled’ is closed to new replies.