Code Duplication    Length = 6-6 lines in 2 locations

src/wp-admin/custom-header.php 2 locations

@@ 320-325 (lines=6) @@
317
	 */
318
	public function js_1() {
319
		$default_color = '';
320
		if ( current_theme_supports( 'custom-header', 'default-text-color' ) ) {
321
			$default_color = get_theme_support( 'custom-header', 'default-text-color' );
322
			if ( $default_color && false === strpos( $default_color, '#' ) ) {
323
				$default_color = '#' . $default_color;
324
			}
325
		}
326
		?>
327
<script type="text/javascript">
328
(function($){
@@ 676-681 (lines=6) @@
673
	<p>
674
	<?php
675
	$default_color = '';
676
	if ( current_theme_supports( 'custom-header', 'default-text-color' ) ) {
677
		$default_color = get_theme_support( 'custom-header', 'default-text-color' );
678
		if ( $default_color && false === strpos( $default_color, '#' ) ) {
679
			$default_color = '#' . $default_color;
680
		}
681
	}
682
683
	$default_color_attr = $default_color ? ' data-default-color="' . esc_attr( $default_color ) . '"' : '';
684