Skip to content

Commit

Permalink
Tiled Gallery: Ensure Photon strips only 'info', not 'all' whe… (#13735)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordesign authored and jeherve committed Oct 15, 2019
1 parent 71d0a1f commit 354af3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions extensions/blocks/tiled-gallery/tiled-gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static function render( $attr, $content ) {
$srcset_src = add_query_arg(
array(
'resize' => $w . ',' . $w,
'strip' => 'all',
'strip' => 'info',
),
$orig_src
);
Expand All @@ -108,7 +108,7 @@ public static function render( $attr, $content ) {
for ( $w = $min_width; $w <= $max_width; $w = min( $max_width, $w + self::IMG_SRCSET_WIDTH_STEP ) ) {
$srcset_src = add_query_arg(
array(
'strip' => 'all',
'strip' => 'info',
'w' => $w,
),
$orig_src
Expand Down
4 changes: 2 additions & 2 deletions extensions/blocks/tiled-gallery/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function photonizedImgProps( img, galleryAtts = {} ) {
.map( srcsetWidth => {
const srcsetSrc = photonImplementation( url, {
resize: `${ srcsetWidth },${ srcsetWidth }`,
strip: 'all',
strip: 'info',
} );
return srcsetSrc ? `${ srcsetSrc } ${ srcsetWidth }w` : null;
} )
Expand All @@ -99,7 +99,7 @@ export function photonizedImgProps( img, galleryAtts = {} ) {
srcSet = range( minWidth, maxWidth, step )
.map( srcsetWidth => {
const srcsetSrc = photonImplementation( url, {
strip: 'all',
strip: 'info',
width: srcsetWidth,
} );
return srcsetSrc ? `${ srcsetSrc } ${ srcsetWidth }w` : null;
Expand Down

0 comments on commit 354af3d

Please sign in to comment.