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: |
|
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)
Change History (4)
This ticket was mentioned in PR #9007 on WordPress/wordpress-develop by @sukhendu2002.
3 weeks ago
#3
- Keywords has-patch added; needs-refresh removed
Trac ticket: https://core.trac.wordpress.org/ticket/39505
Note: See
TracTickets for help on using
tickets.
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.