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
This commit is contained in:
parent
a30c320a55
commit
e076d0b0ac
@ -319,7 +319,7 @@ class WP_Import {
|
||||
|
||||
$catarr = compact('category_nicename', 'category_parent', 'posts_private', 'links_private', 'posts_private', 'cat_name', 'category_description');
|
||||
|
||||
print "<em>" . __( "Importing category $cat_name" ) . "</em><br />\n";
|
||||
print '<em>' . sprintf( __( 'Importing category <em>%s</em>…' ), esc_html($cat_name) ) . '</em><br />' . "\n";
|
||||
$cat_ID = wp_insert_category($catarr);
|
||||
}
|
||||
}
|
||||
@ -341,7 +341,7 @@ class WP_Import {
|
||||
|
||||
$tagarr = compact('slug', 'description');
|
||||
|
||||
print "<em>" . __( "Importing tag $tag_name" ) . "</em><br />\n";
|
||||
print '<em>' . sprintf( __( 'Importing tag <em>%s</em>…' ), esc_html($tag_name) ) . '</em><br />' . "\n";
|
||||
$tag_ID = wp_insert_term($tag_name, 'post_tag', $tagarr);
|
||||
}
|
||||
}
|
||||
@ -379,7 +379,7 @@ class WP_Import {
|
||||
|
||||
$termarr = compact('slug', 'description');
|
||||
|
||||
print "<em>" . __( "Importing $term_name" ) . "</em><br />\n";
|
||||
print '<em>' . sprintf( __( 'Importing <em>%s</em>…' ), esc_html($term_name) ) . '</em><br />' . "\n";
|
||||
$term_ID = wp_insert_term($term_name, $this->get_tag( $c, 'wp:term_taxonomy' ), $termarr);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user