Use wp_get_attachment_image_url
Closed this issue · 0 comments
jaredatch commented
Since 4.4 we can now simply output slightly by doing a wp_get_attachment_image_url
call instead of using wp_get_attachment_image_scr
and then checking isset($img[0]);
https://github.com/jaredatch/EA-Share-Count/blob/master/includes/class-front.php#L386