xml-rpc wp.newPost - A term with the name provided already exists.
|Reported by:||bigwolk||Owned by:|
I'm creating posts using wp.newPost method via xml-rpc api. I published many posts on that way and there were no problems until now. For some reasons xml-rpc api send back message: "A term with the name provided already exists.". This message should be back only if there is a try to create new term with same name and slug. But if I'm creating post with terms which already exists wp should search if these terms exists and use their ids. It always works in this way. When I create this same post directly on wp it publish with no problems. A terms in post structure I'm sending to wp looks like:
$note = array('terms_names' => array('post_tag'=>array('tag1','0'),'category'=>array('some category')));