WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#36538 closed enhancement (fixed)

Allow to pass comment ID and class to `edit_comment_link()`

Reported by: flixos90 Owned by: rachelbaker
Milestone: 4.6 Priority: normal
Severity: normal Version: 1.0
Component: Comments Keywords: has-patch commit
Focuses: Cc:

Description

Similar to edit_post_link(), it would be useful to allow passing the comment ID we want to get the link for to the function. And while we're at it, we can also add the $class parameter to allow setting a different CSS class than the default.

Attachments (1)

36538.diff (1.6 KB) - added by flixos90 4 years ago.
patch with the new parameters

Download all attachments as: .zip

Change History (4)

@flixos90
4 years ago

patch with the new parameters

#1 @flixos90
4 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
4 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 4.6

#3 @rachelbaker
4 years ago

  • Owner set to rachelbaker
  • Resolution set to fixed
  • Status changed from new to closed

In 37215:

Comments: Add parameters to edit_comment_link() to allow specifying a Comment and link class.

Matches the parameters for edit_post_link().

Fixes #36538.

Props flixos90.

Note: See TracTickets for help on using tickets.