[wp-trac] [WordPress Trac] #11863: Trashed items interfere with page/post slug generation
WordPress Trac
noreply at wordpress.org
Wed Feb 26 20:44:39 UTC 2014
#11863: Trashed items interfere with page/post slug generation
-------------------------------------+-----------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version: 2.9
Severity: normal | Resolution:
Keywords: needs-patch ux-feedback | Focuses:
-------------------------------------+-----------------------------
Comment (by JoeManna):
I can confirm this behavior happened to me on WP 3.8.1.
An author created a Page with the same slug URL. Later, they realized they
intended to create a Post instead. After they trashed the Page's draft,
they proceeded to create a Post with the same title/information. The end
result was that the post's slug conflicted with the draft that was sitting
in the Page's trash.
Upon investigation, I deleted the trashed post permanently and the issue
was resolved immediately.
It's my suggestion that either any future slugs will check for conflicts
in the trash and appending a number to the end. Or, to exempt the slugs
for any items in the trash. If there was logic for precedence here, I
would say the trash is lesser of a priority than published or drafted
content, and its slugs should be modified with appended numbers.
-Joe
--
Ticket URL: <https://core.trac.wordpress.org/ticket/11863#comment:70>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list