Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#7901 closed defect (bug) (fixed)

Walker_Comment fails to pass args to comment_reply_link

Reported by: otto42's profile Otto42 Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.7
Component: General Keywords: has-patch
Focuses: Cc:

Description

The Walker_Comment's start_el() function needs to pass all the $args, merged with the three fields it must send anyway, down to the comment_reply_link function, making those fields available to be set in the calls to higher level functions.

For example, when calling wp_list_comments, there's currently no way to set the text of the "Reply" link. If the $args were passed along, one could simply add a reply_text parameter to the call.

Essentially, this ia bug because it leaves no way to actually use the args of comment_reply_link from the higher level functions.

Will attach patch shortly.

Attachments (1)

7901.diff (666 bytes) - added by Otto42 15 years ago.
Patch to add $args to comments_reply_link call

Download all attachments as: .zip

Change History (3)

@Otto42
15 years ago

Patch to add $args to comments_reply_link call

#1 @Otto42
15 years ago

  • Keywords has-patch added

#2 @ryan
15 years ago

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

(In [9209]) Pass args from Walker to comment_reply_link(). Props Otto42. fixes #7901

Note: See TracTickets for help on using tickets.