Skip to content

Commit

Permalink
Merge e4291dd into e91757e
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedmonkey committed Apr 21, 2020
2 parents e91757e + e4291dd commit f78e182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion php/class-hotlink.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ public function wp_calculate_image_srcset( $sources, $size_array, $image_src, $i
*/
public function replace_image( $img_tag, $img_src, $attachment_id ) {
$unsplash_url = $this->get_unsplash_url( $attachment_id );
if ( ! $unsplash_url ) {
$cropped = $this->is_cropped_image( $attachment_id );
if ( ! $unsplash_url || $cropped ) {
return $img_tag;
}

Expand Down

0 comments on commit f78e182

Please sign in to comment.