Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/30/2025 03:55:15 PM (11 months ago)
Author:
johnjamesjacoby
Message:

Replies: use bbp_get_reply_url() instead of bbp_get_reply_to_link().

This change ensures that reply-to links work outside of the single-topic context (user profiles, search pages, etc...)

Props gdragon.

In trunk, for 2.7.

Fixes #3609.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/template.php

    r7276 r7322  
    15961596
    15971597        // Build the URI and return value
    1598         $uri = remove_query_arg( array( 'bbp_reply_to' ) );
    1599         $uri = add_query_arg( array( 'bbp_reply_to' => $reply->ID ) );
     1598        $uri = bbp_get_reply_url( $reply->ID );
     1599        $uri = strtok( $uri, "#" );
     1600        $uri = add_query_arg( array( 'bbp_reply_to' => $reply->ID ), $uri );
    16001601        $uri = wp_nonce_url( $uri, 'respond_id_' . $reply->ID );
    16011602        $uri = $uri . '#new-post';
Note: See TracChangeset for help on using the changeset viewer.