Make WordPress Core


Ignore:
Timestamp:
02/29/2016 12:39:33 AM (10 years ago)
Author:
westonruter
Message:

Customize: Allow button_labels to be overridden in $args passed to WP_Customize_Media_Control and WP_Customize_Image_Control.

Props chetanchauhan, celloexpressions.
See #33755.
Fixes #35542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-image-control.php

    r35389 r36769  
    3232                parent::__construct( $manager, $id, $args );
    3333
    34                 $this->button_labels = array(
     34                $this->button_labels = wp_parse_args( $this->button_labels, array(
    3535                        'select'       => __( 'Select Image' ),
    3636                        'change'       => __( 'Change Image' ),
     
    4040                        'frame_title'  => __( 'Select Image' ),
    4141                        'frame_button' => __( 'Choose Image' ),
    42                 );
     42                ) );
    4343        }
    4444
Note: See TracChangeset for help on using the changeset viewer.