[buddypress-trac] [BuddyPress Trac] #9014: Warning: Undefined property: stdClass::$type

buddypress-trac noreply at wordpress.org
Fri Nov 3 04:37:39 UTC 2023


#9014: Warning: Undefined property: stdClass::$type
--------------------------+---------------------
 Reporter:  vapvarun      |       Owner:  imath
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  12.0.0
Component:  Templates     |     Version:  10.0.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13631" 13631]:
 {{{
 #!CommitTicketReference repository="" revision="13631"
 Add a function to output  the `bp-activity-comment-id` data attribute

 In BP Nouveau, instead of using the same function to output the `bp-
 activity-comment-id` or `bp-activity-id` data attribute according to the
 activity type, introduce the
 `bp_nouveau_activity_comment_data_attribute_id()` function and use it
 inside the `activity/comment.php` template.
 This prevents a notice warning notice and avoid to query for the parent
 activity to get the right activity type.

 Props vapvarun

 Fixes #9014
 Closes https://github.com/buddypress/buddypress/pull/182
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9014#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list