From f9a41202996c906e717cd103f7bfcc988dc04a56 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 23 Feb 2016 23:43:26 +0000 Subject: [PATCH] I18N: Remove `` tags from translatable strings in `wp-admin/custom-header.php`. Add translator comments. Props ramiy. Fixes #35675. Built from https://develop.svn.wordpress.org/trunk@36658 git-svn-id: http://core.svn.wordpress.org/trunk@36625 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/custom-header.php | 40 ++++++++++++++++++++++++++++++++++---- wp-includes/version.php | 2 +- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 1a8fc32311..a46bd94b7f 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -526,16 +526,48 @@ class Custom_Image_Header { printf( __( 'Images of exactly %1$d × %2$d pixels will be used as-is.' ) . '
', get_theme_support( 'custom-header', 'width' ), get_theme_support( 'custom-header', 'height' ) ); } elseif ( current_theme_supports( 'custom-header', 'flex-height' ) ) { if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) - printf( __( 'Images should be at least %1$d pixels wide.' ) . ' ', get_theme_support( 'custom-header', 'width' ) ); + printf( + /* translators: %s: size in pixels */ + __( 'Images should be at least %s wide.' ) . ' ', + sprintf( + /* translators: %d: custom header width */ + '' . __( '%d pixels' ) . '', + get_theme_support( 'custom-header', 'width' ) + ) + ); } elseif ( current_theme_supports( 'custom-header', 'flex-width' ) ) { if ( ! current_theme_supports( 'custom-header', 'flex-height' ) ) - printf( __( 'Images should be at least %1$d pixels tall.' ) . ' ', get_theme_support( 'custom-header', 'height' ) ); + printf( + /* translators: %s: size in pixels */ + __( 'Images should be at least %s tall.' ) . ' ', + sprintf( + /* translators: %d: custom header height */ + '' . __( '%d pixels' ) . '', + get_theme_support( 'custom-header', 'height' ) + ) + ); } if ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) { if ( current_theme_supports( 'custom-header', 'width' ) ) - printf( __( 'Suggested width is %1$d pixels.' ) . ' ', get_theme_support( 'custom-header', 'width' ) ); + printf( + /* translators: %s: size in pixels */ + __( 'Suggested width is %s.' ) . ' ', + sprintf( + /* translators: %d: custom header width */ + '' . __( '%d pixels' ) . '', + get_theme_support( 'custom-header', 'width' ) + ) + ); if ( current_theme_supports( 'custom-header', 'height' ) ) - printf( __( 'Suggested height is %1$d pixels.' ) . ' ', get_theme_support( 'custom-header', 'height' ) ); + printf( + /* translators: %s: size in pixels */ + __( 'Suggested height is %s.' ) . ' ', + sprintf( + /* translators: %d: custom header height */ + '' . __( '%d pixels' ) . '', + get_theme_support( 'custom-header', 'height' ) + ) + ); } ?>

diff --git a/wp-includes/version.php b/wp-includes/version.php index f2e3fdd105..f145cb98d7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36657'; +$wp_version = '4.5-alpha-36658'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.