From e076d0b0ac9e58f9eccba032b59833ef668c3707 Mon Sep 17 00:00:00 2001 From: Nikolay Bachiyski Date: Fri, 7 May 2010 00:50:12 +0000 Subject: [PATCH] Use sprintf instead of interpolation in translatable strings. Props demetris, fixes #13286 git-svn-id: https://develop.svn.wordpress.org/trunk@14492 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/import/wordpress.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index 5331b647fd..46d0c67b13 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -319,7 +319,7 @@ class WP_Import { $catarr = compact('category_nicename', 'category_parent', 'posts_private', 'links_private', 'posts_private', 'cat_name', 'category_description'); - print "" . __( "Importing category $cat_name" ) . "
\n"; + print '' . sprintf( __( 'Importing category %s…' ), esc_html($cat_name) ) . '
' . "\n"; $cat_ID = wp_insert_category($catarr); } } @@ -341,7 +341,7 @@ class WP_Import { $tagarr = compact('slug', 'description'); - print "" . __( "Importing tag $tag_name" ) . "
\n"; + print '' . sprintf( __( 'Importing tag %s…' ), esc_html($tag_name) ) . '
' . "\n"; $tag_ID = wp_insert_term($tag_name, 'post_tag', $tagarr); } } @@ -379,7 +379,7 @@ class WP_Import { $termarr = compact('slug', 'description'); - print "" . __( "Importing $term_name" ) . "
\n"; + print '' . sprintf( __( 'Importing %s…' ), esc_html($term_name) ) . '
' . "\n"; $term_ID = wp_insert_term($term_name, $this->get_tag( $c, 'wp:term_taxonomy' ), $termarr); } }