[buddypress-trac] [BuddyPress Trac] #6226: Multisite: Deleting a post that matches a BP page ID will wipe out the directory page mapping

buddypress-trac noreply at wordpress.org
Tue Feb 17 23:28:30 UTC 2015


#6226: Multisite: Deleting a post that matches a BP page ID will wipe out the
directory page mapping
------------------------------+-----------------------
 Reporter:  r-a-y             |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  high              |  Milestone:  2.2.2
Component:  Component - Core  |    Version:  2.2
 Severity:  normal            |   Keywords:  has-patch
------------------------------+-----------------------
 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/

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6226>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list