Code Duplication    Length = 13-13 lines in 2 locations

includes/fields-api-controls.php 2 locations

@@ 419-431 (lines=13) @@
416
	 * @param string               $id      Control ID.
417
	 * @param array                $args    Optional. Arguments to override class property defaults.
418
	 */
419
	public function __construct( $manager, $id, $args = array() ) {
420
		parent::__construct( $manager, $id, $args );
421
422
		$this->button_labels = array(
423
			'select'       => __( 'Select File' ),
424
			'change'       => __( 'Change File' ),
425
			'default'      => __( 'Default' ),
426
			'remove'       => __( 'Remove' ),
427
			'placeholder'  => __( 'No file selected' ),
428
			'frame_title'  => __( 'Select File' ),
429
			'frame_button' => __( 'Choose File' ),
430
		);
431
	}
432
433
	/**
434
	 * Enqueue control related scripts/styles.
@@ 648-660 (lines=13) @@
645
	 * @param string               $id      Control ID.
646
	 * @param array                $args    Optional. Arguments to override class property defaults.
647
	 */
648
	public function __construct( $manager, $id, $args = array() ) {
649
		parent::__construct( $manager, $id, $args );
650
651
		$this->button_labels = array(
652
			'select'       => __( 'Select Image' ),
653
			'change'       => __( 'Change Image' ),
654
			'remove'       => __( 'Remove' ),
655
			'default'      => __( 'Default' ),
656
			'placeholder'  => __( 'No image selected' ),
657
			'frame_title'  => __( 'Select Image' ),
658
			'frame_button' => __( 'Choose Image' ),
659
		);
660
	}
661
662
	/**
663
	 * @since 3.4.2