Make WordPress Core

Opened 12 years ago

Closed 10 years ago

#19581 closed enhancement (fixed)

wp_list_comments_args hook

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

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 12 years ago.
19581.2.diff (641 bytes) - added by hlashbrooke 10 years ago.
Adding hook docs to filter

Download all attachments as: .zip

Change History (12)

#1 @johnbillion
12 years ago

Kinda related: #11212

#2 @c3mdigital
11 years ago

#16431 was marked as a duplicate.

#3 @c3mdigital
11 years ago

  • Keywords needs-refresh added
  • Version changed from 3.3 to 2.7

#4 @c3mdigital
11 years ago

  • Component changed from Template to Comments

#5 @SergeyBiryukov
10 years ago

#28129 was marked as a duplicate.

#6 @SergeyBiryukov
10 years ago

  • Milestone changed from Awaiting Review to 4.0

#7 follow-up: @DrewAPicture
10 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
10 years ago

Adding hook docs to filter

#8 in reply to: ↑ 7 @hlashbrooke
10 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
10 years ago

  • Keywords commit added

Hook docs in 19581.2.diff look good to me.

#10 @SergeyBiryukov
10 years ago

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

In 28285:

Add a filter for wp_list_comments() arguments.

props greenshady, hlashbrooke.
fixes #19581.

Note: See TracTickets for help on using tickets.