From 8f0329b45202f07cb666416bc56334484fc0beb8 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 11 Apr 2014 23:24:32 +0000 Subject: [PATCH] Translate custom header customize control strings. Remove `final` added before beta to see what breakage we might cause by refactoring this class. see #21785. fixes #27738. git-svn-id: https://develop.svn.wordpress.org/trunk@28082 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-control.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/class-wp-customize-control.php b/src/wp-includes/class-wp-customize-control.php index 8b9147905f..df440744bd 100644 --- a/src/wp-includes/class-wp-customize-control.php +++ b/src/wp-includes/class-wp-customize-control.php @@ -708,7 +708,7 @@ class WP_Customize_Background_Image_Control extends WP_Customize_Image_Control { } } -final class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control { +class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control { public $type = 'header'; public function __construct( $manager ) { @@ -852,14 +852,12 @@ final class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control

Add new, your theme recommends a header size of %d × %d pixels.' ), $width, $height ); + printf( __( 'While you can crop images to your liking after clicking Add new, your theme recommends a header size of %s × %s pixels.' ), $width, $height ); } elseif ( $width ) { - printf( ( 'While you can crop images to your liking after clicking Add new, your theme recommends a header width of %d pixels.' ), $width ); + printf( __( 'While you can crop images to your liking after clicking Add new, your theme recommends a header width of %s pixels.' ), $width ); } else { - printf( ( 'While you can crop images to your liking after clicking Add new, your theme recommends a header height of %d pixels.' ), $height ); + printf( __( 'While you can crop images to your liking after clicking Add new, your theme recommends a header height of %s pixels.' ), $height ); } ?>