WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/25/2020 04:53:06 AM (21 months ago)
Author:
noisysocks
Message:

Comments: Fix title not updating when replying to a comment

When replying to an existing comment, the comment form is moved to below the
existing comment with JS, but the form heading was not being updated. This
fixes the issue by introducing a new data-attribute to the reply link with the
correct heading string, and applying that string to the heading when the form
is moved.

Props isabel_brison, azaozz, peterwilsoncc.
Fixes #38009.

File:
1 edited

Legend:

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

    r47366 r47506  
    17041704            'belowelement'   => $args['add_below'] . '-' . $comment->comment_ID,
    17051705            'respondelement' => $args['respond_id'],
     1706            'replyto'        => sprintf( $args['reply_to_text'], $comment->comment_author ),
    17061707        );
    17071708
Note: See TracChangeset for help on using the changeset viewer.