wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_is_document_isolation_policy_supported › WordPress Function

Seit7.2.0
Veraltetn/v
› wp_is_document_isolation_policy_supported ( Keine Parameter )
Gibt zurück:
  • (bool) True when the browser is Chromium 137 or newer.
Definiert in:
Codex:

Determines whether the current request's browser honors the Document-Isolation-Policy header.

Document-Isolation-Policy is how WordPress makes a page cross-origin isolated for client-side media processing. Chromium 137+ is the only engine that implements it; other browsers ignore the header, so the page never becomes isolated and the client-side pipeline cannot run.


Quellcode

function wp_is_document_isolation_policy_supported(): bool {
	$chromium_version = wp_get_chromium_major_version();

	return null !== $chromium_version && $chromium_version >= 137;
}