[wp-trac] [WordPress Trac] #25618: Fix opening of Media Manager in Customizer

WordPress Trac noreply at wordpress.org
Tue Dec 3 21:12:57 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 SergeyBiryukov):

 Replying to [comment:7 westonruter]:
 > To do this subclass, you have to `require` `class-wp-customize-
 control.php` up front, but then when `WP_Customize_Manager` is
 instantiated later, its constructor also does a `require` for that same
 file, resulting in a fatal class redeclaration error.

 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`.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25618#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list