X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/138998bbd8f7a1ac38b2f1eacbdf7cd522be4b13..8d3bb1a5dcfdea9857d3c88c3751f09593e34dc8:/wp-includes/customize/class-wp-customize-image-control.php diff --git a/wp-includes/customize/class-wp-customize-image-control.php b/wp-includes/customize/class-wp-customize-image-control.php index dc50a3a1..ffb89e3f 100644 --- a/wp-includes/customize/class-wp-customize-image-control.php +++ b/wp-includes/customize/class-wp-customize-image-control.php @@ -31,7 +31,7 @@ class WP_Customize_Image_Control extends WP_Customize_Upload_Control { public function __construct( $manager, $id, $args = array() ) { parent::__construct( $manager, $id, $args ); - $this->button_labels = array( + $this->button_labels = wp_parse_args( $this->button_labels, array( 'select' => __( 'Select Image' ), 'change' => __( 'Change Image' ), 'remove' => __( 'Remove' ), @@ -39,7 +39,7 @@ class WP_Customize_Image_Control extends WP_Customize_Upload_Control { 'placeholder' => __( 'No image selected' ), 'frame_title' => __( 'Select Image' ), 'frame_button' => __( 'Choose Image' ), - ); + ) ); } /**