[buddypress-trac] [BuddyPress Trac] #7329: Notice: Trying to get property of non-object

buddypress-trac noreply at wordpress.org
Mon Feb 6 19:26:45 UTC 2017

#7329: Notice: Trying to get property of non-object
 Reporter:  slaFFik         |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  2.8
Component:  Administration  |     Version:  2.7
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |

Comment (by r-a-y):

 In [changeset:"11413"]:
 #!CommitTicketReference repository="" revision="11413"
 Activity: Add parameter to `bp_activity_get_comment_depth()`.

 Previously, `bp_activity_get_comment_depth()` only supported looking for
 activity comment's depth during a queried activity comment loop.

 This commit allows a developer to pass either a comment object or an
 activity ID to the function so the activity comment depth can be fetched
 outside the activity comment loop.

 This fixes an issue with a notice displaying in the BuddyPress Activity
 admin dashboard.

 See #7329.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7329#comment:17>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list