true ]; $tags['script'] = [ 'id' => true, 'src' => true ]; $tags['link'] = [ 'rel' => true, 'id' => true, 'href' => true, 'media' => true, ]; return $tags; } /** * Ignore src escaping because `wp_kses` strips `data:` from image placeholder source in PHP 8.0+ * * @param array $uriAttributes * * @return array $uriAttributes */ public static function skipSrcEscapeTemporary( $uriAttributes ) { if ( ( $key = array_search( 'src', $uriAttributes ) ) !== false) { unset( $uriAttributes[ $key ] ); } return $uriAttributes; } }