Skip to content

Commit

Permalink
Update the URL format for comment edits.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwight committed Dec 14, 2017
1 parent 948498f commit 64643f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
) );
Expand Down

0 comments on commit 64643f8

Please sign in to comment.