true,
'id' => true,
'style' => true,
'title' => true,
'role' => true,
'dir' => true,
'lang' => true,
'hidden' => true,
'tabindex' => true,
'translate' => true,
'aria-atomic' => true,
'aria-busy' => true,
'aria-checked' => true,
'aria-controls' => true,
'aria-current' => true,
'aria-describedby' => true,
'aria-disabled' => true,
'aria-expanded' => true,
'aria-haspopup' => true,
'aria-hidden' => true,
'aria-invalid' => true,
'aria-label' => true,
'aria-labelledby' => true,
'aria-live' => true,
'aria-modal' => true,
'aria-pressed' => true,
'aria-relevant' => true,
'aria-required' => true,
'aria-selected' => true,
'aria-valuemax' => true,
'aria-valuemin' => true,
'aria-valuenow' => true,
'data-*' => true,
);
/**
* Cached lists, built once per request.
*
* @var array>>
*/
private static $cache = array();
/**
* Markup of values, prices, titles and images.
*
* @return array>
*/
public static function markup(): array {
if ( ! isset( self::$cache['markup'] ) ) {
self::$cache['markup'] = self::build(
array(
// wc_price() wraps the amount in and marks the
// currency symbol translate="no".
'bdi' => array(),
'img' => array(
'src' => true,
'srcset' => true,
'sizes' => true,
'alt' => true,
'width' => true,
'height' => true,
'loading' => true,
'decoding' => true,
'fetchpriority' => true,
),
'svg' => array(
'xmlns' => true,
'viewbox' => true,
'width' => true,
'height' => true,
'fill' => true,
'focusable' => true,
),
'path' => array(
'd' => true,
'fill' => true,
),
)
);
}
return self::$cache['markup'];
}
/**
* Markup of the WCDP donation form and leaderboard.
*
* The form embeds WooCommerce checkout fields and one `