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

WordPress Trac noreply at wordpress.org
Sun Apr 10 23:36:04 UTC 2016


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

Comment (by netweb):

 Replying to [comment:154 pavelevap]:
 > Yes, when you publish post "Trash" (slug `trash`) and move it to Trash,
 `post_name` will be changed to `trash__trashed`.
 Correct

 Replying to [comment:154 pavelevap]:
 > And when you restore it, `post_name` is changed back to `trash` and
 `_wp_old_slug` with value `trash__trashed` is created.
 Correct

 Replying to [comment:154 pavelevap]:
 > The only feature of `_wp_old_slug` in this case is possible redirection
 from `trash__trashed` to `trash`? But I do not understand why?
 Correct, the [attachment:11863.18.diff] would have bypassed saving
 `_wp_old_slug`

 Replying to [comment:154 pavelevap]:
 > No user knows (for default Posts and Pages) this temporary trashed slug
 and there is no need to save this redirect.
 For default post types yes, for custom post types like bbPress' use case
 knowing and using the trashed slug is required.

 Replying to [comment:154 pavelevap]:
 > And if it is possible problem on bbPress side, it should be solved there
 because it is not WP core issue?
 There is no longer any issue on bbPress side, it also couldn't be handled
 by bbPress alone, this is WP core functionality that changed that bbPress
 itself could not change.

 Replying to [comment:154 pavelevap]:
 > For most of WP users it has only downsizes, I guess, that means bloated
 database with not usable values :-(
 Yes, but again this would be pretty limited numbers for most users

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


More information about the wp-trac mailing list