Make WordPress Core

Opened 11 months ago

Last modified 11 months ago

#51589 new defect (bug)

Missing whitespace between comment reply title and cancel comment reply link

Reported by: Guido07111975 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Comments Keywords: reporter-feedback
Focuses: Cc:



There's a missing whitespace between the comment reply title and the cancel comment reply link.
This results in: "Reply to A WordPress CommenterCancel reply".

The cancel-comment-reply-link is wrapped in <small> tags.
In file comment-template there's a whitespace before the opening tag: 'cancel_reply_before' => ' <small>',
But somehow it's being ignored in comment form. Stripped perhaps? Was not able to find what causes this.

More info here:

Change History (3)

#1 @davidbaumwald
11 months ago

  • Keywords reporter-feedback added
  • Version 5.5.1 deleted

@Guido07111975 Do you have anything in your theme/plugins hooking in to comment_form_defaults?

#2 @Guido07111975
11 months ago

Hi David,

No, don’t think so.
Please check for example the TwentyNineteen theme. TwentyTwenty has some margin-left added to the link, so no visual issue with that one.


#3 @bcworkz
11 months ago

The cancel reply link is placed within the title's before/after HTML, making it difficult to reorder elements with CSS as might be desired by some themes. The cancel reply link ought to be its own element outside of title HTML. In other words, move the echo $args['title_reply_after']; line up to before the echo $args['cancel_reply_before']; line.

Note: See TracTickets for help on using tickets.