I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment.

See #38882


git-svn-id: https://develop.svn.wordpress.org/trunk@39326 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2016-11-21 02:45:53 +00:00
parent 7faf699c69
commit 347040745d
19 changed files with 114 additions and 28 deletions
+4 -2
View File
@@ -2655,10 +2655,12 @@ function wp_update_term( $term_id, $taxonomy, $args = array() ) {
if ( $duplicate && $duplicate->term_id != $term_id ) {
// If an empty slug was passed or the parent changed, reset the slug to something unique.
// Otherwise, bail.
if ( $empty_slug || ( $parent != $term['parent']) )
if ( $empty_slug || ( $parent != $term['parent']) ) {
$slug = wp_unique_term_slug($slug, (object) $args);
else
} else {
/* translators: 1: Taxonomy term slug */
return new WP_Error('duplicate_term_slug', sprintf(__('The slug “%s” is already in use by another term'), $slug));
}
}
$tt_id = (int) $wpdb->get_var( $wpdb->prepare( "SELECT tt.term_taxonomy_id FROM $wpdb->term_taxonomy AS tt INNER JOIN $wpdb->terms AS t ON tt.term_id = t.term_id WHERE tt.taxonomy = %s AND t.term_id = %d", $taxonomy, $term_id) );