[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
Fri Sep 24 00:30:00 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:  5.9
Component:  Posts, Post Types        |     Version:  5.5
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch has-unit-      |     Focuses:  administration,
  tests                              |  multisite
-------------------------------------+-------------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"51859" 51859]:
 {{{
 #!CommitTicketReference repository="" revision="51859"
 Tests: Further improve the tests for
 `avoid_blog_page_permalink_collision()`:

 * Rename the test filename and class to match the name of the function
 being tested.
 * Remove unnecessary `setUp()` and `tearDown()` methods.
 * Replace the `only` test group with `post`.

 Follow-up to [51855-51857].

 See #51147.
 }}}

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


More information about the wp-trac mailing list