[wp-trac] [WordPress Trac] #52295: The response is not a valid JSON response - URL permalink using the ? sign
WordPress Trac
noreply at wordpress.org
Thu Jan 14 18:22:49 UTC 2021
#52295: The response is not a valid JSON response - URL permalink using the ? sign
--------------------------+------------------------------
Reporter: rshlo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.6
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by rshlo):
checking the debug log points to an error in
wp-includes/load.php:1650
That is a function to {{{
$cache[ $media_type ] = (bool) preg_match(
'/(^|\s|,)application\/([\w!#\$&-\^\.\+]+\+)?json(\+oembed)?($|\s|;|,)/i',
$media_type );
}}}
So it seems that this regex check is failing on links with the ? sign in
the url.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52295#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list