Opened 10 years ago
Closed 10 years ago
#6226 closed defect (bug) (fixed)
Multisite: Deleting a post that matches a BP page ID will wipe out the directory page mapping
Reported by: | r-a-y | Owned by: | |
---|---|---|---|
Milestone: | 2.2.1 | Priority: | highest |
Severity: | blocker | Version: | 2.2 |
Component: | Core | Keywords: | commit |
Cc: |
Description
r9177 introduced functionality to delete BP's directory page marker when the corresponding page ID is deleted.
Unfortunately, r9177 forgot to add a check to see if we're on the BP root blog.
The problem is if a sub-site deletes a post whose page ID matches a BP directory page ID, the BP directory page marker is removed.
Will try to write a unit test for this, but it's kind of hard to write a test to match post IDs.
BP forum thread that sparked this ticket: https://buddypress.org/support/topic/page-templates-disassociate/
Moving to 2.2.1.
This is a nasty bug causing data loss for multisite installations with a straightforward fix.
Thanks again, Ray.