[wp-trac] [WordPress Trac] #11863: Trashed items interfere with page/post slug generation
WordPress Trac
noreply at wordpress.org
Mon Feb 8 22:54:08 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 has-patch has-unit-tests | Focuses:
needs-testing |
-------------------------------------------------+-------------------------
Comment (by ericlewis):
Thinking about this more, I wonder if we should consider a combined
approach of what we were calling
[https://core.trac.wordpress.org/ticket/11863#comment:91 option 1 and
option 3].
When a post is trashed, change post_name to `{{slug}}-%trashed%`, and
'''also''' store the value in post meta. This lets us re-apply the
original slug on untrashing from the post meta value (avoiding
[https://core.trac.wordpress.org/ticket/11863#comment:94 the character
limit]) and also avoid changing the slug at
[https://core.trac.wordpress.org/ticket/11863#comment:106 odd times as
@boone mentioned].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/11863#comment:107>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list