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

WordPress Trac noreply at wordpress.org
Sun Jun 14 19:52:08 UTC 2015


#11863: Trashed items interfere with page/post slug generation
-------------------------------------+-----------------------------
 Reporter:  Denis-de-Bernardy        |       Owner:
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:  Future Release
Component:  Posts, Post Types        |     Version:  2.9
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch ux-feedback  |     Focuses:
-------------------------------------+-----------------------------

Comment (by ericlewis):

 Working with @williamsba1 on refactoring this patch in
 attachment:11862.2.diff

 Looks good, other than one conditional that needs some consideration:

 {{{
 if ( $orig_permalink != $post_name_abridged && isset( $_GET['message'] )
 && $_GET['message'] == '6' )
 }}}

 This is how we're currently figuring out whether the postname is being
 suffixed with `-2` on first post save. There must be a better way to do
 this.

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


More information about the wp-trac mailing list