[wp-trac] [WordPress Trac] #51147: avoid_blog_page_permalink_collision shouldn't change the post_name when the page has a parent.

WordPress Trac noreply at wordpress.org
Thu Sep 23 20:26:41 UTC 2021


#51147: avoid_blog_page_permalink_collision shouldn't change the post_name when the
page has a parent.
-------------------------------------+-------------------------------------
 Reporter:  stormrockwell            |       Owner:  SergeyBiryukov
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  Future Release
Component:  Posts, Post Types        |     Version:  5.5
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  commit has-patch has-    |     Focuses:  administration,
  unit-tests                         |  multisite
-------------------------------------+-------------------------------------
Changes (by whyisjake):

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


Comment:

 In [changeset:"51855" 51855]:
 {{{
 #!CommitTicketReference repository="" revision="51855"
 Posts, Post Types: Don't add a trailing number when there is a unique post
 parent.

 WordPress tries to avoid an issue where slugs might match an existing slug
 of a page/post.
 If we are in a hierarchical post type, there will be a level, and we can
 leave it the same.

 Props stormrockwell, SergeyBiryukov, terriann, tubys, jeremyfelt, Daschmi,
 MaximeCulea, knutsp, whyisjake.
 Fixes #51147.
 See also #44112 and #45260.
 }}}

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


More information about the wp-trac mailing list