From 64643f843295489aae584e245d2c3c9341314f45 Mon Sep 17 00:00:00 2001 From: Kirk Wight Date: Thu, 14 Dec 2017 13:24:53 -0800 Subject: [PATCH] Update the URL format for comment edits. --- class.jetpack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.jetpack.php b/class.jetpack.php index f4af21bf68329..13c565d31708d 100644 --- a/class.jetpack.php +++ b/class.jetpack.php @@ -673,7 +673,7 @@ function point_edit_post_links_to_calypso( $default_url, $post_id ) { function point_edit_comment_links_to_calypso( $url ) { // Take the `query` key value from the URL, and parse its parts to the $query_args. `amp;c` matches the comment ID. wp_parse_str( wp_parse_url( $url, PHP_URL_QUERY ), $query_args ); - return esc_url( sprintf( 'https://wordpress.com/comments/all/%s/?commentId=%d&action=edit', + return esc_url( sprintf( 'https://wordpress.com/comment/%s/%d?action=edit', Jetpack::build_raw_urls( get_home_url() ), $query_args['amp;c'] ) );