[wp-testers] INSERT re-ran on saving a post

Alex Moskalyuk moskalyuk at gmail.com
Fri Mar 7 00:57:39 GMT 2008


Upon saving an existing draft:

WordPress database error Duplicate entry '10120-36' for key 1 for query
INSERT INTO wp_term_relationships (`object_id`,`term_taxonomy_id`) VALUES
('10120','36') made by wp_set_object_terms, referer:
http://mysite.com/wp-admin/post.php?action=edit&post=10120

It should probably be an INSERT with ON DUPLICATE KEY UPDATE or REPLACE if
nothing else.


More information about the wp-testers mailing list