• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

BUG wp_insert_term with existed term name but non-existed slug

polnd

New member
Messages
1
Likes
0
Points
1
#1
Hi. Thanx for the free support. I followed by your [Cyr to Lat reloaded – transliteration of links and file names] Support | WordPress.org message.

Test sample:
wp_insert_term( ‘t’, ‘post_tag’ ); // Inserts new term
wp_insert_term( ‘t’, ‘post_tag’, array( ‘slug’ => ‘t-alternative’ ) ); // Should insert another term too according to API

But in the second call wbcr_ctlr_sanitize_title redirects slug to already existed due to $is_term check in the code.
 

Kirill

Support team
Messages
82
Likes
4
Points
8
#2
Hi

Thank you for bug report. We'll fix this in the next updates.

Best regards, Kirill
Webcraftic team