Skip to content

Commit b0a4aca

Browse files
committed
Pass amp_is_bento_enabled() to AMP_Tag_And_Attribute_Sanitizer as prefer_bento arg
1 parent 2119cf1 commit b0a4aca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

includes/amp-helper-functions.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,10 @@ function amp_get_content_sanitizers( $post = null ) {
15201520
'AMP_Meta_Sanitizer' => [],
15211521
'AMP_Layout_Sanitizer' => [],
15221522
'AMP_Accessibility_Sanitizer' => [],
1523-
'AMP_Tag_And_Attribute_Sanitizer' => [], // Note: This validating sanitizer must come at the end to clean up any remaining issues the other sanitizers didn't catch.
1523+
// Note: This validating sanitizer must come at the end to clean up any remaining issues the other sanitizers didn't catch.
1524+
'AMP_Tag_And_Attribute_Sanitizer' => [
1525+
'prefer_bento' => amp_is_bento_enabled(),
1526+
],
15241527
];
15251528

15261529
if ( ! empty( $theme_support_args['nav_menu_toggle'] ) ) {

0 commit comments

Comments
 (0)