[wp-trac] [WordPress Trac] #11863: Trashed items interfere with page/post slug generation

WordPress Trac noreply at wordpress.org
Thu Oct 1 15:12:31 UTC 2015


#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 krogsgard):

 I'd like to preface by saying the current patch from @ericlewis and
 @williamsba is by far better than nothing, as old as this issue is.
 However, I think we could be more user friendly in the approach.

 I would really like to see the newest post with a conflicting slug take
 precedent, if the conflicting counterpart is already in the trash. Then,
 if someone attempts to restore the trashed post, use the prompt then to
 resolve the conflict before the trashed post is restored. Basically, the
 approach would mean new posts that have matching slugs in trash would take
 the slug, and the trashed item would receive a slug change to add the
 `-2`.

 This would be a huge win to get into core. So many epically sad `-2` slugs
 out there and basically permanent. (Sidenote, will this work on terms
 too?) It also relates to being able to use "About" for default content, as
 was just brought up to me in #34116.

 An argument against the more opinionated approach hasn't been made in 5 or
 6 years. Yet `-2` persists and is terrible. I have a hard time believing a
 bunch of people are restoring posts from the trash. A ton of people
 struggle with duplicate slugs though. Can we be more opinionated about
 making nice slugs on actual new content now?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/11863#comment:79>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list