Skip to content

Commit

Permalink
Remove srcset function (#422)
Browse files Browse the repository at this point in the history
Currently, the `srcset` does the same as the parent version. Also, it has a bug because `$size` parameter is used anywhere.
  • Loading branch information
piotr-bajer authored and luboskmetko committed Jun 28, 2019
1 parent dd39160 commit e4f810e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions generators/wp/templates/chisel-starter-theme/Chisel/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ class Image extends \Timber\Image {
*/
public $PostClass = 'Chisel\Post';

/**
* @inheritDoc
*/
public function srcset($size = "full") {
if (!$this->is_image()) {
return '';
}

return wp_get_attachment_image_srcset($this->ID);
}

/**
* Checks whether attachment is an image. Duplicate from \Timber\Image due to @internal flag.
*
Expand Down

0 comments on commit e4f810e

Please sign in to comment.