Skip to content

Commit

Permalink
Allow default layout attribute for attachment pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonya Mork committed Aug 7, 2018
1 parent 6baffaa commit 74dc97a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/sanitizers/class-amp-core-theme-sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,7 @@ public static function add_twentyseventeen_attachment_image_attributes() {

$sizes = wp_get_attachment_image_sizes( $attachment->ID, $size );
if ( false !== $sizes ) {
$attr['layout'] = 'responsive';
$attr['sizes'] = $sizes;
$attr['sizes'] = $sizes;
}

return $attr;
Expand Down

0 comments on commit 74dc97a

Please sign in to comment.