[wp-trac] [WordPress Trac] #28059: Inline image attachments with wp_mail()
WordPress Trac
noreply at wordpress.org
Wed Jun 8 15:33:09 UTC 2016
#28059: Inline image attachments with wp_mail()
-------------------------------------------------+-------------------------
Reporter: jesin | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Mail | Review
Severity: normal | Version:
Keywords: has-patch needs-testing needs-unit- | Resolution:
tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by chris@…):
I'm not sure if this is needed at the `wp_mail` level or not (''although I
needed to do the workaround today'') but if this gets refreshed I wouldn't
blindly assume that `basename( $embed )` is valid for the `$cid`
parameter.
Most people probably have `image-1.png` and `image-2.png` but it could be
`http://example.com/cats/logo.png` and `http://example.com/dogs/logo.png`
and `basename()` would turn them both into `logo.png`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28059#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list