[wp-trac] [WordPress Trac] #23096: Provide callback before setting state of the editor media manager

WordPress Trac noreply at wordpress.org
Wed Oct 1 19:04:31 UTC 2014


#23096: Provide callback before setting state of the editor media manager
-------------------------+------------------
 Reporter:  griffinjt    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.1
Component:  Media        |     Version:  3.5
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------

Comment (by wonderboymusic):

 I think there is an overall issue with separating library code and
 docReady init code. Our Backbone code should be a library of classes that
 can be overridden by extension/inheritance (already is), and the "init"
 portion should be what can easily be short-circuited.

 For this particular instance, I will add the namespace (with dashes!) to
 the click registration, which will allow devs to turn off the default
 behavior. Messy, but solves the immediate problem.

 The docReady code problem is across the codebase, and something I hope to
 address soon when an elegant solution arises.

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


More information about the wp-trac mailing list