Clanbite

clanbite_block_fragment_global_attributes(  ): array<string, bool>

Global HTML attributes: WordPress core post-tag behaviour (_wp_add_global_attributes() in wp-includes/kses.php) plus the ARIA state attributes and tabindex that Clanbite widgets (tabs, comboboxes, dialogs, menus) need, kept locally so Clanbite does not depend on Core’s underscore-prefixed helper.

Core omits these, so wp_kses() silently removed them (e.g. aria-selected on tabs, aria-modal on dialogs, tabindex on roving-tabindex controls). They are inert state attributes with no script-injection vector; event-handler attributes (on*) remain disallowed.

Returns

array<string, bool>

Defined in inc/clanbite-block-render-escape.php

Changelog

VersionDescription
1.3.0Updated.