[buddypress-trac] [BuddyPress Trac] #5681: page directory ids don't update when component is deactivated
buddypress-trac
noreply at wordpress.org
Wed Oct 29 16:58:15 UTC 2014
#5681: page directory ids don't update when component is deactivated
-------------------------------------------------+-------------------------
Reporter: modemlooper | Owner: DJPaul
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 2.2
Component: Core | Version: 2.0
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests good- |
first-bug |
-------------------------------------------------+-------------------------
Changes (by DJPaul):
* keywords: needs-patch needs-unit-tests => needs-patch needs-unit-tests
good-first-bug
* owner: => DJPaul
* status: new => reviewing
Comment:
For anyone looking to work on this, the summary of the changes required
are:
* When a page mapped to a BP Component is deleted (or trashed), it should
be removed from the "bp-pages" option.
* When a Component is deactivated, the mapped page ID should remain in the
"bp-pages" array, but not be returned in the results from the
`bp_core_get_directory_page_ids` function.
We'll need unit tests for this, but if you're not sure how to add tests to
BuddyPress, an initial patch can just contain the above changes, and
we/another contributor can then work on the tests.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5681#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list