Skip to content

Commit

Permalink
Issue #864: Add comment after addition of 'style.'
Browse files Browse the repository at this point in the history
This was present earlier.
Weston added this, and it describes where it will appear.
  • Loading branch information
Ryan Kienstra committed Feb 14, 2018
1 parent 11405b3 commit f95c0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/sanitizers/class-amp-iframe-sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function sanitize() {
$this->did_convert_elements = true;

$new_attributes = $this->set_layout( $new_attributes );
$new_attributes['style'] = 'max-width:100%';
$new_attributes['style'] = 'max-width:100%'; // AMP_Style_Sanitizer will move this to the amp-custom style.
if ( isset( $new_attributes['width'] ) && isset( $new_attributes['height'] ) ) {
$this->add_or_append_attribute( $new_attributes, 'class', 'amp-wp-enforced-sizes' );
}
Expand Down

0 comments on commit f95c0be

Please sign in to comment.