Skip to:
Content

BuddyPress.org

Ticket #8890: 8890-bp-blogs-activity.diff

File 8890-bp-blogs-activity.diff, 1.8 KB (added by viralsampat, 3 years ago)

I have checked above mentioned issue and founds few files. Here, I have added its patch.

  • src/bp-blogs/bp-blogs-activity.php

    diff --git a/src/bp-blogs/bp-blogs-activity.php b/src/bp-blogs/bp-blogs-activity.php
    index 139d6b72f..9103a3bfa 100644
    a b add_action( 'bp_blogs_remove_data_for_blog', 'bp_blogs_delete_activity_for_site' 
    675675 * @param int $blog_id Optional. Defaults to current blog ID.
    676676 * @param int $user_id Optional. Defaults to the logged-in user ID. This param
    677677 *                     is currently unused in the function (but is passed to hooks).
     678 * @global wpdb $wpdb WordPress database object.
    678679 */
    679680function bp_blogs_remove_post( $post_id, $blog_id = 0, $user_id = 0 ) {
    680681        global $wpdb;
    add_action( 'trashed_post_comments', 'bp_blogs_remove_activity_meta_for_trashed_ 
    10251026 *
    10261027 * @param array $args Arguments passed from bp_parse_args() in bp_has_activities().
    10271028 * @return array $args
     1029 *
     1030 * @global wpdb $wpdb WordPress database object.
    10281031 */
    10291032function bp_blogs_new_blog_comment_query_backpat( $args ) {
    10301033        global $wpdb;
    add_action( 'bp_before_activity_comment', 'bp_blogs_setup_comment_loop_globals_o 
    12031206 *
    12041207 * @param bool $retval Is activity commenting enabled for this activity entry.
    12051208 * @return bool
     1209 *
     1210 * @global BP_Activity_Template $activities_template The main activity template loop class.
    12061211 */
    12071212function bp_blogs_disable_activity_commenting( $retval ) {
    12081213        global $activities_template;
    add_filter( 'bp_activity_can_comment_reply', 'bp_blogs_can_comment_reply', 10, 2 
    13341339 *
    13351340 * @param string $retval The activity comment permalink.
    13361341 * @return string
     1342 *
     1343 * @global BP_Activity_Template $activities_template The main activity template loop class.
    13371344 */
    13381345function bp_blogs_activity_comment_permalink( $retval = '' ) {
    13391346        global $activities_template;