Skip to content

Commit

Permalink
Ensure consistent application of AMP_Auto_Lightbox_Disable_Sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Mar 9, 2022
1 parent 2624459 commit e02a9f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/amp-helper-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e02a9f9

Please sign in to comment.