Skip to content

Commit

Permalink
Merge pull request ampproject#1092 from Automattic/fix/featured-image…
Browse files Browse the repository at this point in the history
…-anim

Ensure all sanitizers run when building featured image
  • Loading branch information
westonruter authored Apr 20, 2018
2 parents d65578d + 5045563 commit 5a00ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/templates/class-amp-post-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ private function build_post_featured_image() {

list( $sanitized_html, $featured_scripts, $featured_styles ) = AMP_Content_Sanitizer::sanitize(
$featured_html,
array( 'AMP_Img_Sanitizer' => array() ),
amp_get_content_sanitizers( $this->post ),
array(
'content_max_width' => $this->get( 'content_max_width' ),
)
Expand Down

0 comments on commit 5a00ad6

Please sign in to comment.