Make WordPress Core

Opened 9 years ago

Last modified 3 weeks ago

#39505 new enhancement

Add an option to add custom classes to comment_reply_link()

Reported by: truongwp's profile truongwp Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7
Component: Comments Keywords: reporter-feedback has-patch
Focuses: template Cc:

Description

In many cases, I want to add custom classes to comment reply link. I can use js or handle comment link string. But it's better if have an option to add custom classes to link via PHP.

Attachments (1)

39505.diff (2.0 KB) - added by truongwp 9 years ago.

Download all attachments as: .zip

Change History (4)

@truongwp
9 years ago

#1 @truongwp
9 years ago

  • Keywords has-patch added

#2 @jorbin
5 weeks ago

  • Keywords needs-refresh reporter-feedback added; has-patch removed

Patch does not apply cleanly, so changing to needs-refresh.

What is the usecase for needing custom classes here? Since it needs to be included in the call to get_comment_reply_link, it seems like custom themes can use other parts of the CSS cascade if you need to target specific links.

This ticket was mentioned in PR #9007 on WordPress/wordpress-develop by @sukhendu2002.


3 weeks ago
#3

  • Keywords has-patch added; needs-refresh removed
Note: See TracTickets for help on using tickets.