[wp-trac] [WordPress Trac] #35542: Media control don't allow button labels to be customized from the args array.

WordPress Trac noreply at wordpress.org
Wed Jan 20 13:10:14 UTC 2016


#35542: Media control don't allow button labels to be customized from the args
array.
---------------------------+-----------------------------
 Reporter:  chetanchauhan  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Customize      |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 The code below doesn't work.

 {{{#!php
 <?php
 $wp_customize->add_control( new WP_Customize_Media_Control( $wp_customize,
 'media_test', array(
                 'label' => __( 'Example Media (audio) Control' ),
                 'section' => 'title_tagline',
                 'mime_type' => 'audio',
                 'button_labels' => array(
                         'select'       => __( 'Select Audio' ),
                         'change'       => __( 'Change Audio' ),
                         'default'      => __( 'Default' ),
                         'remove'       => __( 'Remove' ),
                         'placeholder'  => __( 'No file selected' ),
                         'frame_title'  => __( 'Select Audio' ),
                         'frame_button' => __( 'Choose Audio' ),
                 ),
         ) ) );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35542>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list