[wp-trac] [WordPress Trac] #36735: Add media, insert from URL and alt attribute
WordPress Trac
noreply at wordpress.org
Fri Jul 15 21:55:29 UTC 2016
#36735: Add media, insert from URL and alt attribute
--------------------------------------+----------------------------
Reporter: afercia | Owner: joemcgill
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.6
Component: Media | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: accessibility
--------------------------------------+----------------------------
Comment (by joemcgill):
Good catch @afineman. This was easy to miss because the visual editor
automatically converted this to the proper `alt=""` notation, but the text
editor does not. [attachment:36735.3.patch] addresses the issue by making
an exception in `wp.html.string()` so empty attribute notation isn't used
when the attribute is `alt`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36735#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list