Support » Plugin: Cyr-To-Lat » wp_insert_term with existed term name but unexisted slug

  • Resolved polnd

    (@polnd)


    Hi.

    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 hook ctl_sanitize_title redirects slug to already existed due to $is_term check in the code.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wp_insert_term with existed term name but unexisted slug’ is closed to new replies.