Skip to content

Commit 9c59667

Browse files
committed
Remove undefined and unneeded $alt variable
1 parent 10d1235 commit 9c59667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wp-tevko-responsive-images.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function tevkori_get_img_alt( $image ) {
3636
function tevkori_get_picture_srcs( $image, $mappings ) {
3737
$arr = array();
3838
foreach ( $mappings as $size => $type ) {
39-
$image_src = wp_get_attachment_image_src( $image, $type, $alt );
39+
$image_src = wp_get_attachment_image_src( $image, $type );
4040
$arr[] = '<span data-src="'. $image_src[0] . ' "data-media="(min-width:'. $size .'px)"></span>';
4141
}
4242
return implode( $arr );

0 commit comments

Comments
 (0)