Skip to content

Conversation

@Ipstenu
Copy link

@Ipstenu Ipstenu commented Jul 19, 2023

Currently the wp_unique_post_slug function does not check on draft posts which can cause data from the wrong post to display if a slug is reused, as it does not properly append -2.

This change treats drafts the same as published, something that is already hackey fixed for the block editor.

It has been tested with and without classic editor active.

Trac ticket: https://core.trac.wordpress.org/ticket/58813

@Ipstenu Ipstenu closed this by deleting the head repository Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant