Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#51589 new defect (bug)

Missing whitespace between comment reply title and cancel comment reply link

Reported by: guido07111975's profile 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
4 years 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
4 years 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
4 years 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.