mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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) );
|
||||
|
||||
Reference in New Issue
Block a user