Skip to content

Commit 4a56c58

Browse files
committed
Skip audio source tags
1 parent 76e1580 commit 4a56c58

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

php/class-delivery.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,12 @@ public function parse_element( $element ) {
14611461
// Break element up.
14621462
$attributes = shortcode_parse_atts( $element );
14631463
$tag_element['tag'] = array_shift( $attributes );
1464+
1465+
// Skip audio source tags.
1466+
if ( ! empty( $attributes['type'] ) && 0 === strpos( $attributes['type'], 'audio/' ) && 'source' === $tag_element['tag'] ) {
1467+
return null;
1468+
}
1469+
14641470
// Context Switch Check.
14651471
if ( 'article' === $tag_element['tag'] ) {
14661472
if ( ! empty( $attributes['id'] ) && false !== strpos( $attributes['id'], 'post-' ) ) {

0 commit comments

Comments
 (0)