Skip to content

Commit

Permalink
bbPress: Ensure 'reply_to' variable uses bbp_get_reply_to().
Browse files Browse the repository at this point in the history
Fixes issues with setting the reply to ID when nested replies is on in
bbPress.

See commit 606b526.
  • Loading branch information
r-a-y committed Jul 24, 2016
1 parent 606b526 commit effc363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/bp-rbe-extend-bbpress.php
Expand Up @@ -1365,7 +1365,7 @@ public function ges_extend_listener( $rbe ) {
// If activity type is a bbPress reply, we need to grab the topic ID manually.
if ( $this->temp_activity->type === $this->activity_type ) {
$rbe->listener->secondary_item_id = bbp_get_reply_topic_id( $this->temp_activity->secondary_item_id );
$rbe->listener->reply_to_id = get_post_field( 'post_parent', $this->temp_activity->secondary_item_id );
$rbe->listener->reply_to_id = bbp_get_reply_to( $this->temp_activity->secondary_item_id );
}
}
}

0 comments on commit effc363

Please sign in to comment.