[wp-trac] [WordPress Trac] #30850: Audio/video previews for media controls in the Customizer

WordPress Trac noreply at wordpress.org
Fri Mar 6 16:31:18 UTC 2015


#30850: Audio/video previews for media controls in the Customizer
------------------------------+-------------------------
 Reporter:  celloexpressions  |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  4.2
Component:  Customize         |     Version:  4.1
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  javascript
------------------------------+-------------------------

Comment (by Fab1en):

 Here is a simple way to test this : edit the `inc/customizer.php` file in
 the `twentyfifteen` theme, and add an upload control to the list :


 {{{
 $wp_customize->add_setting( 'upload_test', array(
         'default'           => '',
 ) );
 $wp_customize->add_control( new WP_Customize_Upload_Control(
 $wp_customize, 'upload_test', array(
         'label'       => 'Upload test',
         'section'     => 'header_image',
 ) ) );
 }}}

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


More information about the wp-trac mailing list