Skip to:
Content

bbPress.org

Changeset 6845


Ignore:
Timestamp:
08/01/2018 05:09:24 AM (7 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress: use $reply_id instead of $topic_id so bbp_get_reply_url() works correctly.

This change ensures that notification links go directly to the reply, not the topic, and not a 404.

Fixes #3213. See #3214.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/notifications.php

    r6815 r6845  
    135135    }
    136136
    137     // Get autohr information
     137    // Get author information
    138138    $topic_author_id   = bbp_get_topic_author_id( $topic_id );
    139139    $secondary_item_id = $author_id;
     
    147147    $args = array(
    148148        'user_id'          => $topic_author_id,
    149         'item_id'          => $topic_id,
     149        'item_id'          => $reply_id,
    150150        'component_name'   => bbp_get_component_name(),
    151151        'component_action' => 'bbp_new_reply',
Note: See TracChangeset for help on using the changeset viewer.