#51147 closed defect (bug) (fixed)
avoid_blog_page_permalink_collision shouldn't change the post_name when the page has a parent.
Reported by: | stormrockwell | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | 5.5 |
Component: | Posts, Post Types | Keywords: | has-patch has-unit-tests |
Focuses: | administration, multisite | Cc: |
Description
How to reproduce:
Create multisite install (subdirectory)
Add subsite "bar"
On the main site, create a page for "foo" and a page for "bar" with the parent "foo"
When trying to publish that page you will get /foo/bar{rand1-10}.
Attachments (4)
Change History (20)
#1
@
4 years ago
- Component changed from Administration to Posts, Post Types
- Focuses administration multisite added
- Keywords has-patch needs-unit-tests added
- Milestone changed from Awaiting Review to 5.6
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
#3
@
4 years ago
- Milestone changed from 5.6 to Future Release
- Version changed from trunk to 5.5
Don't want to go changing these internals in late beta, moving out of 5.6 and assigning the reported version to 5.5 although I imagine this has existed since long before that. If this really is new to trunk
please feel free to move back and kindly add more context around what change caused it.
#6
@
3 years ago
This defect still exists in 5.8.1, echoing the last question from @stormrockwell - is there anything else that needs to be done to get this into a future release plan?
#10
@
3 years ago
- Keywords needs-patch added; commit has-patch has-unit-tests removed
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening as [51855] needs a follow-up to upgrade the test case fixture methods from camelCase to snake_case, i.e. setUp()
to set_up()
etc. I'll fix shortly.
This ticket was mentioned in PR #1699 on WordPress/wordpress-develop by hellofromtonya.
3 years ago
#12
- Keywords has-patch has-unit-tests added; needs-patch removed
Trac ticket: https://core.trac.wordpress.org/ticket/51147
#14
@
3 years ago
- Resolution set to fixed
- Status changed from reopened to closed
Reclosing with [51857].
hellofromtonya commented on PR #1699:
3 years ago
#15
Committed with changeset https://core.trac.wordpress.org/changeset/51857.
Hi there, welcome back to WordPress Trac!
Thanks for the ticket and the patch, this makes sense at a glance.
A unit test to confirm the fix would also be great.