Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#36538 closed enhancement (fixed)

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

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

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 10 years ago.
patch with the new parameters

Download all attachments as: .zip

Change History (4)

@flixos90
10 years ago

patch with the new parameters

#1 @flixos90
10 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
10 years ago

  • Keywords commit added
  • Milestone Awaiting Review → 4.6

#3 @rachelbaker
10 years ago

  • Owner set to rachelbaker
  • Resolution → fixed
  • Status new → 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.