[wp-trac] [WordPress Trac] #11863: Trashed items interfere with page/post slug generation
WordPress Trac
noreply at wordpress.org
Fri Feb 19 16:34:38 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):
Replying to [comment:108 DrewAPicture]:
> Had you considered not using post meta at all and simply
prefixing/suffixing the slug when trashed? Seems like introducing post
meta into the mix might needlessly overcomplicate what we're trying to
accommodate here.
>
> I'd think we could rely on core's ability to find a unique post name to
revert back to a valid post name on restore. The same would go for a
similarly-post-named post slug coming in ... prefix/suffix it and check
for a unique slug when trashing.
We have, great minds think alike :) We've turned away from suffixing the
slug when trashed because that would
[https://core.trac.wordpress.org/ticket/11863#comment:97 severely limit
non-ASCII characters in slugs].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/11863#comment:109>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list