Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#36538 closed enhancement (fixed)

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

Reported by: flixos90's profile flixos90 Owned by: rachelbaker's profile 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 8 years ago.
patch with the new parameters

Download all attachments as: .zip

Change History (4)

@flixos90
8 years ago

patch with the new parameters

#1 @flixos90
8 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
8 years ago

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

#3 @rachelbaker
8 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.