From 467949b8acabb1dc3b83e1825e9582590a213742 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 31 Aug 2023 13:53:10 +0200 Subject: [PATCH] Add `amp-story-audio-sticker` to spec --- .../class-amp-allowed-tags-generated.php | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/includes/sanitizers/class-amp-allowed-tags-generated.php b/includes/sanitizers/class-amp-allowed-tags-generated.php index 22c9f4c4a64..aaf60cbbb8c 100644 --- a/includes/sanitizers/class-amp-allowed-tags-generated.php +++ b/includes/sanitizers/class-amp-allowed-tags-generated.php @@ -129,6 +129,11 @@ class AMP_Allowed_Tags_Generated { 'ul', 'use', ), + 'amp-story-audio-sticker-allowed-descendants' => array( + 'amp-img', + 'div', + 'span', + ), 'amp-story-bookend-allowed-descendants' => array( 'script', ), @@ -264,6 +269,9 @@ class AMP_Allowed_Tags_Generated { 'amp-render', 'amp-state', 'amp-story-360', + 'amp-story-audio-sticker', + 'amp-story-audio-sticker-pretap', + 'amp-story-audio-sticker-posttap', 'amp-story-auto-analytics', 'amp-story-captions', 'amp-story-interactive-binary-poll', @@ -6327,6 +6335,83 @@ class AMP_Allowed_Tags_Generated { ), ), ), + 'amp-story-audio-sticker' => array( + array( + 'attr_spec_list' => array( + 'media' => array(), + 'noloading' => array( + 'value' => array( + '', + ), + ), + 'size' => array( + 'value' => array( + 'small', + 'large', + ), + ), + 'sticker' => array( + 'value' => array( + 'headphone-cat', + 'tape-player', + 'loud-speaker', + 'audio-cloud', + ), + ), + 'sticker-style' => array( + 'value' => array( + 'outline', + 'dropshadow', + ), + ), + ), + 'tag_spec' => array( + 'amp_layout' => array( + 'supported_layouts' => array( + 5, + ), + ), + 'mandatory_parent' => 'amp-story-grid-layer', + 'requires_extension' => array( + 'amp-story-audio-sticker', + ), + ), + ), + ), + 'amp-story-audio-sticker-posttap' => array( + array( + 'attr_spec_list' => array(), + 'tag_spec' => array( + 'amp_layout' => array( + 'supported_layouts' => array( + 5, + ), + ), + 'descendant_tag_list' => 'amp-story-audio-sticker-allowed-descendants', + 'mandatory_parent' => 'amp-story-audio-sticker', + 'requires_extension' => array( + 'amp-story-audio-sticker', + ), + ), + ), + ), + 'amp-story-audio-sticker-pretap' => array( + array( + 'attr_spec_list' => array(), + 'tag_spec' => array( + 'amp_layout' => array( + 'supported_layouts' => array( + 5, + ), + ), + 'descendant_tag_list' => 'amp-story-audio-sticker-allowed-descendants', + 'mandatory_parent' => 'amp-story-audio-sticker', + 'requires_extension' => array( + 'amp-story-audio-sticker', + ), + ), + ), + ), 'amp-story-auto-ads' => array( array( 'attr_spec_list' => array(