[wp-trac] [WordPress Trac] #36735: Add media, insert from URL and alt attribute

WordPress Trac noreply at wordpress.org
Wed Jul 6 01:41:36 UTC 2016


#36735: Add media, insert from URL and alt attribute
--------------------------------------+----------------------------
 Reporter:  afercia                   |       Owner:  joemcgill
     Type:  defect (bug)              |      Status:  accepted
 Priority:  normal                    |   Milestone:  4.6
Component:  Media                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  accessibility
--------------------------------------+----------------------------

Comment (by joemcgill):

 [attachment:36735.2.patch] is similar to [attachment:36735.1.patch] except
 that it sets the `type` property during the callback on the
 `workflow.state` for embeds, instead of waiting for
 `wp.media.string.image()` and also cleans up a few coding style issues.

 Not sure which is the better place in the chain to explicitly set the
 `type` property since usually it is taken from the passed attachment,
 which doesn't exist in this case.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36735#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list