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

WordPress Trac noreply at wordpress.org
Thu Apr 7 19:21:05 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:  has-patch commit   |     Focuses:
-------------------------------+------------------------
Changes (by boonebgorges):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37165"]:
 {{{
 #!CommitTicketReference repository="" revision="37165"
 Use `__trashed` suffix rather than `-%trashed%` for trashed post slugs.

 Percent signs are reserved characters in URIs. As such, it was impossible
 for
 plugins to route requests to trashed posts, as happens in bbPress. The new
 `__trashed` suffix should be sufficiently unique.

 Also adds a test that demonstrates that the `__trashed` suffix can be
 appended to slugs that contain the suffix somewhere other than the end of
 the string.

 Props netweb, ericlewis.
 Fixes #11863.
 }}}

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


More information about the wp-trac mailing list