WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#7901 closed defect (bug) (fixed)

Walker_Comment fails to pass args to comment_reply_link

Reported by: 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 6 years ago.
Patch to add $args to comments_reply_link call

Download all attachments as: .zip

Change History (3)

Otto426 years ago

Patch to add $args to comments_reply_link call

comment:1 Otto426 years ago

  • Keywords has-patch added

comment:2 ryan6 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.