[wp-meta] [Making WordPress.org] #8218: Set_Plugin_Project - validate JSON via json_validate()
Making WordPress.org
noreply at wordpress.org
Fri Apr 3 20:46:54 UTC 2026
#8218: Set_Plugin_Project - validate JSON via json_validate()
--------------------------------------+--------------------
Reporter: timse201 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Translate Site & Plugins | Keywords:
--------------------------------------+--------------------
Currently, Set Plugin checks if the API response is valid JSON by looking
at the first character ($json && '{' == $json[0]).
If the API response starts with a simple space, a new line, or a hidden
character the check fails. It will reject the data, even if the JSON is
fine.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/8218>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list