[wp-trac] [WordPress Trac] #36861: The Insert into post button in the Edit Image window doesn't work.

WordPress Trac noreply at wordpress.org
Sat May 21 19:02:19 UTC 2016


#36861: The Insert into post button in the Edit Image window doesn't work.
-------------------------------------+------------------------------
 Reporter:  tai                      |       Owner:  adamsilverstein
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.5.3
Component:  Media                    |     Version:  4.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  javascript
-------------------------------------+------------------------------

Comment (by adamsilverstein):

 In [attachment:36861.2.diff]:

 * Replace `listenTo` with `on`, similar to #36900
 * Replace `stopListening` with `off`
 * Fixes an issue where the handler was never called

 This patch maintains the activate/deactivate pattern used throughout the
 media library, switching the listen method: `listenTo` doesn't work
 correctly in this context since [36546].

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


More information about the wp-trac mailing list