X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/b22765f41bf0b2021b9beb9120ee0ac91fa89292..refs/tags/wordpress-4.7-scripts:/wp-includes/customize/class-wp-customize-header-image-control.php diff --git a/wp-includes/customize/class-wp-customize-header-image-control.php b/wp-includes/customize/class-wp-customize-header-image-control.php index 9852de6d..b87a7bb3 100644 --- a/wp-includes/customize/class-wp-customize-header-image-control.php +++ b/wp-includes/customize/class-wp-customize-header-image-control.php @@ -102,10 +102,6 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control { <# } else { #> - <# if (data.type === 'uploaded') { #> - - <# } #> - + <# if ( data.type === 'uploaded' ) { #> + + <# } #> + <# } #> @@ -131,7 +131,7 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control { <# } else { #> - {{{data.header.alt_text || data.header.description}}} + {{{data.header.alt_text || data.header.description}}} <# } #> <# } else { #> @@ -166,9 +166,15 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control { $height = absint( get_theme_support( 'custom-header', 'height' ) ); ?>
-

+ ' . $this->label . ''; + } ?> +

+

Add new image, we recommend matching the size of your video.' ); + } elseif ( $width && $height ) { /* translators: %s: header size in pixels */ printf( __( 'While you can crop images to your liking after clicking Add new image, your theme recommends a header size of %s pixels.' ), sprintf( '%s × %s', $width, $height )