WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/13/2019 05:08:14 AM (4 months ago)
Author:
peterwilsoncc
Message:

Comments: Include post permalink in comment reply link.

Include the post's permalink when generating reply links in get_comment_reply_link() to account for comments displayed on index and archive pages.

This reapplies [32786] which was inadvertently reverted in [42360].

Props justinahinon, donmhico.
See #33383.
Fixes #47174.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r45742 r45787  
    16981698                        'unapproved'      => false,
    16991699                        'moderation-hash' => false,
    1700                     )
     1700                    ),
     1701                    get_permalink( $post->ID )
    17011702                )
    17021703            ) . '#' . $args['respond_id'],
Note: See TracChangeset for help on using the changeset viewer.