X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/d3947bc013df7edd54b46deed8230d2eeafc5ecb..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 8bbb572b..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' ) { #> + + <# } #> + <# } #> @@ -121,30 +121,23 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control { <# if (data.random) { #>
-
- - <# if ( data.type === 'uploaded' ) { #> - - <# } else if ( data.type === 'default' ) { #> - - <# } #> - -
+ + <# if ( data.type === 'uploaded' ) { #> + + <# } else if ( data.type === 'default' ) { #> + + <# } #>
<# } else { #> - {{{data.header.alt_text || data.header.description}}} + {{{data.header.alt_text || data.header.description}}} <# } #> <# } else { #>
-
- - - -
+
<# } #> @@ -173,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 )