independent-publisher icon indicating copy to clipboard operation
independent-publisher copied to clipboard

Header images should use get_header_image_tag()

Open raamdev opened this issue 3 years ago • 0 comments

Currently, the <img> tag for the header image is built manually in independent_publisher_posted_author_card():

https://github.com/raamdev/independent-publisher/blob/36dd2c2856221850c4a5491f18193a325c82e810/inc/template-tags.php#L491

It would be better to use get_header_image_tag() to build this tag, as that will include the srcset attributes for responsive images automatically.

raamdev avatar Nov 08 '21 17:11 raamdev