mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Banishing ASCII quotes and apostrophes, props demetris, fixes #9655
git-svn-id: https://develop.svn.wordpress.org/trunk@11190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1642,7 +1642,7 @@ function wp_update_term( $term_id, $taxonomy, $args = array() ) {
|
||||
if ( $empty_slug || ( $parent != $term->parent) )
|
||||
$slug = wp_unique_term_slug($slug, (object) $args);
|
||||
else
|
||||
return new WP_Error('duplicate_term_slug', sprintf(__('The slug "%s" is already in use by another term'), $slug));
|
||||
return new WP_Error('duplicate_term_slug', sprintf(__('The slug “%s” is already in use by another term'), $slug));
|
||||
}
|
||||
|
||||
$wpdb->update($wpdb->terms, compact( 'name', 'slug', 'term_group' ), compact( 'term_id' ) );
|
||||
|
||||
Reference in New Issue
Block a user