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

WordPress Trac noreply at wordpress.org
Mon Jan 4 09:12:30 UTC 2016


#11863: Trashed items interfere with page/post slug generation
-----------------------------------+------------------------
 Reporter:  Denis-de-Bernardy      |       Owner:  ericlewis
     Type:  enhancement            |      Status:  assigned
 Priority:  normal                 |   Milestone:  4.5
Component:  Posts, Post Types      |     Version:  2.9
 Severity:  normal                 |  Resolution:
 Keywords:  make-flow needs-patch  |     Focuses:
-----------------------------------+------------------------

Comment (by robertwhitis):

 One thing to consider as part of this is that items in the trash can still
 be active elsewhere, such as in menus.

 This is something that has always been strange to me.

 For instance, when you permanently delete a page, if it was part of a
 menu, upon permanent deletion, it's removed from the menu. However, simply
 putting it in the trash will not remove it from the menu.

 I agree with the thought that once something is in the trash, the overall
 intent is for it not to be used - anywhere.

 At that point, you could drop any custom slug and revert to it's post ID
 as the slug.

 Upon restoration from trash, the slug based on the title could be
 reinstated, and if a conflict is found, add -2 to the end of the slug as
 is the usual approach.

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


More information about the wp-trac mailing list