[buddypress-trac] [BuddyPress] #4860: Allow Notification callbacks to be methods and not functions only

buddypress-trac noreply at wordpress.org
Sun Mar 3 00:22:10 UTC 2013


#4860: Allow Notification callbacks to be methods and not functions only
---------------------------+-----------------------------
 Reporter:  sbrajesh       |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Notifications  |    Version:  1.7
 Severity:  normal         |   Keywords:  has-patch
---------------------------+-----------------------------
 Hi,
 currently, the notification rendering mechanism in !BuddyPress needs the
 notification_callback to be a function and does not render it if we
 register a method on some object.

 We need to change function_exists to is_callable.

 here is a patch attached against r6829

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


More information about the buddypress-trac mailing list