Changes between Initial Version and Version 1 of Ticket #47889, comment 2
- Timestamp:
- 08/17/2019 02:20:53 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #47889, comment 2
initial v1 4 4 5 5 In my attached patch, [https://core.trac.wordpress.org/attachment/ticket/47889/47889.diff 47889.diff], you'll see that I removed the wrapping `esc_url()`. I think it's safe to do this since the image url comes from `wp_get_attachment_image_src()` which is expected to return an array with a url as the first element if the image exist. 6 7 Reference: 8 https://developer.wordpress.org/reference/functions/wp_get_attachment_image_src/