Make WordPress Core

Opened 15 years ago

Closed 12 years ago

#19581 closed enhancement (fixed)

wp_list_comments_args hook

Reported by: greenshady Owned by: SergeyBiryukov
Priority: normal Milestone: 4.0
Component: Comments Version: 2.7
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

wp_list_comments needs a hook on its arguments. This will make it easier to change with child themes as opposed to overwriting the entire comments.php template.

Attached patch adds a new hook: wp_list_comments_args.

Attachments (2)

wp_list_comments_args.diff (550 bytes ) - added by greenshady 15 years ago.
19581.2.diff (641 bytes ) - added by hlashbrooke 12 years ago.
Adding hook docs to filter

Download all attachments as: .zip

Change History (12)

#1 @johnbillion
15 years ago

Kinda related: #11212

#2 @c3mdigital
13 years ago

#16431 was marked as a duplicate.

#3 @c3mdigital
13 years ago

  • Keywords needs-refresh added
  • Version 3.32.7

#4 @c3mdigital
13 years ago

  • Component TemplateComments

#5 @SergeyBiryukov
12 years ago

#28129 was marked as a duplicate.

#6 @SergeyBiryukov
12 years ago

  • Milestone Awaiting Review4.0

#7 follow-up: @DrewAPicture
12 years ago

  • Keywords needs-docs added

Would somebody like to add hook docs for this filter? If you aren't sure where to start, a very similar (already-documented) hook would be the wp_link_pages_args filter.

@hlashbrooke
12 years ago

Adding hook docs to filter

#8 in reply to: ↑ 7 @hlashbrooke
12 years ago

  • Keywords needs-refresh needs-docs removed

Replying to DrewAPicture:

Would somebody like to add hook docs for this filter? If you aren't sure where to start, a very similar (already-documented) hook would be the wp_link_pages_args filter.

I added the hook docs - let me know if anything needs to be modified.

#9 @DrewAPicture
12 years ago

  • Keywords commit added

Hook docs in 19581.2.diff look good to me.

#10 @SergeyBiryukov
12 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 28285:

Add a filter for wp_list_comments() arguments.

props greenshady, hlashbrooke.
fixes #19581.

Note: See TracTickets for help on using tickets.