Enhance kses functions
Allow iframes in the kses functions for multisites, and srcset to fix blurry images
Extension name
t2/enhance-kses
In a multisite setup, only the superadmin has elevated permissions across all sites, including unrestricted unfiltered_html
capabilities. This ensures that no HTML, including <iframe>
elements, is stripped. However, the administrator role has limited unfiltered_html
permissions, unlike in single-site WordPress installations where administrators have full access.
Additionally, when rendering cards programmatically, the output is sanitized, which strips the srcset
attribute from images, causing them to appear blurry. To resolve this, the sanitization functions can be explicitly configured to preserve the srcset
attribute.
Properties (t2.json)
features
Enable the iframe feature.
Enable the srcset feature.