We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b3d0d0 commit 8246439Copy full SHA for 8246439
src/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -4091,14 +4091,16 @@ public function is_json_script_tag(): bool {
4091
* > A JSON MIME type is any MIME type whose subtype ends in "+json" or whose essence
4092
* > is "application/json" or "text/json".
4093
*
4094
+ * The JSON subtype ending in "+json" is not currently handled due to lack
4095
+ * of a MIME type parser.
4096
+ *
4097
* @see https://mimesniff.spec.whatwg.org/#json-mime-type
4098
*/
4099
if (
4100
'application/json' === $type_string
4101
|| 'importmap' === $type_string
4102
|| 'speculationrules' === $type_string
4103
|| 'text/json' === $type_string
- || str_ends_with( $type_string, '+json' )
4104
) {
4105
return true;
4106
}
0 commit comments