[buddypress-trac] [BuddyPress Trac] #6937: fatal error when trashing emails
buddypress-trac
noreply at wordpress.org
Fri Mar 4 18:42:59 UTC 2016
#6937: fatal error when trashing emails
-------------------------------+--------------------
Reporter: DJPaul | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.5.1
Component: Component - Blogs | Version: 2.5.0
Severity: normal | Resolution:
Keywords: has-patch commit |
-------------------------------+--------------------
Comment (by imath):
In [changeset:"10632"]:
{{{
#!CommitTicketReference repository="" revision="10632"
Make sure the Activity Component is active before using functions relative
to it inside the Blogs component.
r10544 introduced a side effect on the BuddyPress Emails feature when the
Blogs component is activated and the Activity one is deactivated.
This changeset removed some `bp_is_active()` checks inside
`bp_blogs_delete_activity()` and `bp_blogs_record_activity()` in favor a
conditional load of the whole `bp-blogs/bp-blogs-activity.php` file.
Unfortunately, an issue appeared when the Activity component is not active
because these functions are used when some WordPress hooks are fired, for
instance when a post type is deleted.
For the 2.5 Branch we are bringing back the `bp_is_active()` checks before
using the two functions mentioned earlier. For next release, we will carry
on moving all the code specific to the activity component inside the `bp-
blogs/bp-blogs-activity.php` file.
See #6937 (trunk)
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6937#comment:19>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list