From e02a9f9e0cffaef92304acd8c03c4dbdb668fb80 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 9 Mar 2022 10:31:14 -0800 Subject: [PATCH] Ensure consistent application of AMP_Auto_Lightbox_Disable_Sanitizer --- includes/amp-helper-functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/amp-helper-functions.php b/includes/amp-helper-functions.php index 3ef8f79ac7c..38d16a191a4 100644 --- a/includes/amp-helper-functions.php +++ b/includes/amp-helper-functions.php @@ -1704,6 +1704,7 @@ function amp_get_content_sanitizers( $post = null ) { // Force core essential sanitizers to appear at the end at the end, with non-essential and third-party sanitizers appearing before. $expected_final_sanitizer_order = [ + AMP_Auto_Lightbox_Disable_Sanitizer::class, AMP_Core_Theme_Sanitizer::class, // Must come before script sanitizer since onclick attributes are removed. AMP_Bento_Sanitizer::class, // Bento scripts may be preserved here. AMP_Script_Sanitizer::class, // Must come before sanitizers for images, videos, audios, comments, forms, and styles.