[wp-trac] [WordPress Trac] #25618: Fix opening of Media Manager in Customizer
WordPress Trac
noreply at wordpress.org
Tue Dec 3 21:22:43 UTC 2013
#25618: Fix opening of Media Manager in Customizer
--------------------------+---------------------
Reporter: westonruter | Owner: nacin
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.8
Component: Appearance | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch |
--------------------------+---------------------
Comment (by westonruter):
Replying to [comment:8 SergeyBiryukov]:
> That can be worked around by moving the `WP_Media_Manager_Control` class
declaration to a separate file and requiring it inside the function
attached to `customize_register`.
Yes, it can be worked around, but it seems a workaround shouldn't be
necessary. It would be nice if everything could be self-contained in one
file if desired. The other workaround approach is to declare the subclass
''inside'' of the `customize_register` function callback, as I did in a
demo plugin https://gist.github.com/westonruter/7729203 for #26061
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25618#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list