Images not appearing in Internet Explorer 11 when there is only one size
Hi,
I noticed that when you just use an array
global $glob_sce_settings;
/* Image sizes */
$glob_sce_settings['rwd_image_sizes']['s-team 2x'] = array(
array(275, 275, array('center', 'center'))
);
or one image size
global $glob_sce_settings;
/* Image sizes */
$glob_sce_settings['rwd_image_sizes']['s-team 2x'] = array(
'xs' => array(
275, 275, array('center', 'center'),
'picture' => '<img src="{single-src}" srcset="{src}" alt="{alt}">', // mobile-first strategy picture img.
'bg' => '', // mobile-first strategy bg.
'bg_retina' => '@media {dpr}, {min_res}',
'srcset' => '{w}w',
'sizes' => '{w}px',
),
);
the generated img tag on the page does not have 'src' attribute, which is required by Internet Explorer to show an image on the page.
<picture class="attachment-s-team size-s-team wp-post-picture">
<img srcset="//localhost:3000/wp-content/uploads/2019/11/photo-1500648767791-00dcc994a43e-e1574685299994-275x275.jpeg, //localhost:3000/wp-content/uploads/2019/11/photo-1500648767791-00dcc994a43e-e1574685299994-550x550.jpeg 2x" alt="">
</picture>
It would be wonderful if it could be improved in the next version. Thanks
Thanks for the bug report. We will fix this in the next release.
Thank for the fast reply. I am looking forward to the next release :) Thanks.