From 9e0ff3f7455637a40162ca034769b34d33c1dd11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Austin=20John=20Mayer=20=28=E4=BA=95=E4=B8=8A=20=E3=82=AA?= =?UTF-8?q?=E3=83=BC=E3=82=B9=E3=83=86=E3=82=A3=E3=83=B3=29?= Date: Wed, 12 Jul 2023 14:16:56 +0900 Subject: [PATCH] use escaped uri as base uri for reply to link --- src/includes/replies/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/replies/template.php b/src/includes/replies/template.php index 1cc57181..775400b1 100644 --- a/src/includes/replies/template.php +++ b/src/includes/replies/template.php @@ -1594,7 +1594,7 @@ function bbp_get_reply_to_link( $args = array() ) { // Build the URI and return value $uri = remove_query_arg( array( 'bbp_reply_to' ) ); - $uri = add_query_arg( array( 'bbp_reply_to' => $reply->ID ) ); + $uri = add_query_arg( array( 'bbp_reply_to' => $reply->ID ), $uri ); $uri = wp_nonce_url( $uri, 'respond_id_' . $reply->ID ); $uri = $uri . '#new-post';