Customize: Improve the wording for Header Image control intro.

Props michelleweber, menakas, jcc9873, melchoyce.
Fixes #40431.
Built from https://develop.svn.wordpress.org/trunk@41747


git-svn-id: http://core.svn.wordpress.org/trunk@41581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-10-04 19:35:47 +00:00
parent e8a1a7ab2b
commit dd4ea3c038
2 changed files with 5 additions and 5 deletions

View File

@ -170,20 +170,20 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
<p class="customizer-section-intro customize-control-description"> <p class="customizer-section-intro customize-control-description">
<?php <?php
if ( current_theme_supports( 'custom-header', 'video' ) ) { if ( current_theme_supports( 'custom-header', 'video' ) ) {
_e( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, we recommend matching the size of your video.' ); _e( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image that matches the size of your video &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' );
} elseif ( $width && $height ) { } elseif ( $width && $height ) {
/* translators: %s: header size in pixels */ /* translators: %s: header size in pixels */
printf( __( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, your theme recommends a header size of %s pixels.' ), printf( __( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
sprintf( '<strong>%s &times; %s</strong>', $width, $height ) sprintf( '<strong>%s &times; %s</strong>', $width, $height )
); );
} elseif ( $width ) { } elseif ( $width ) {
/* translators: %s: header width in pixels */ /* translators: %s: header width in pixels */
printf( __( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, your theme recommends a header width of %s pixels.' ), printf( __( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
sprintf( '<strong>%s</strong>', $width ) sprintf( '<strong>%s</strong>', $width )
); );
} else { } else {
/* translators: %s: header height in pixels */ /* translators: %s: header height in pixels */
printf( __( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, your theme recommends a header height of %s pixels.' ), printf( __( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
sprintf( '<strong>%s</strong>', $height ) sprintf( '<strong>%s</strong>', $height )
); );
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.9-alpha-41746'; $wp_version = '4.9-alpha-41747';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.