[buddypress-trac] [BuddyPress Trac] #9232: Avoid calling BP_Notifications_Notification if it is not available.

buddypress-trac noreply at wordpress.org
Mon Sep 9 20:07:58 UTC 2024


#9232: Avoid calling BP_Notifications_Notification if it is not available.
--------------------------+-----------------------
 Reporter:  dcavins       |      Owner:  dcavins
     Type:  defect (bug)  |     Status:  assigned
 Priority:  normal        |  Milestone:  15.0.0
Component:  Members       |    Version:  14.1.0
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 In some code I wrote around site invitations and membership requests, I
 assume that `BP_Notifications_Notification` is available to use, even
 though it might not be. The attached patch check to see if notifications
 are active before attempting to use the notification class.

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


More information about the buddypress-trac mailing list