Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce bp_nouveau_activity_comment_data_attribute_id() #182

Closed
wants to merge 1 commit into from

Conversation

imath
Copy link
Member

@imath imath commented Oct 31, 2023

This function is outputting the data-bp-activity-comment-id attribute. It was created as a replacement of bp_nouveau_activity_data_attribute_id() for the activity/comment.php template to avoid messing with activity types when not set (instead a requerying for the parent activity).

Trac ticket: https://buddypress.trac.wordpress.org/ticket/9014


This Pull Request is for code review only. Please keep all other discussion in the BuddyPress Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the WordPress Core Handbook for more details.

This function is outputting the `data-bp-activity-comment-id` attribute. It was created as a replacement of `bp_nouveau_activity_data_attribute_id()` for the `activity/comment.php` template to avoid messing with activity types when not set (instead a requerying for the parent activity).
@imath imath deleted the patch/9014 branch November 3, 2023 04:41
dcavins pushed a commit to dcavins/buddypress-wp-svn that referenced this pull request Dec 12, 2023
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 buddypress/buddypress#182



git-svn-id: http://buddypress.svn.wordpress.org/trunk@13631 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant