id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 50447 wp_publish_post not checking for unique post slugs hughie.molloy "When published a post using wp_publish_post no check is done to see if the slug / post_name is unique. This leads to problems with the permalink. I have attached a patch file to the ticket as I could not make a PR to the github **Steps to reproduce**: Make and publish an article titled 'test'. ID 1 Make and set to draft a second article titled ' test'. ID 2 call wp_publish_post(2) the post name of articles 1 and 2 are both set to test. This can be worked around by calling the following code instead: {{{#!php 2, 'post_status' => 'publish', ]; wp_update_post($post); }}} " defect (bug) new normal Future Release Posts, Post Types 5.5 major has-patch has-unit-tests