WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 3 weeks ago

#38074 new defect (bug)

comments_template needs a filter for $top_level_args

Reported by: thomaslhotta Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.5
Component: Comments Keywords: has-patch needs-testing
Focuses: Cc:

Description

Hi,

I am making use of the comments_template_query_args filter to change the way comments are displayed. However the first comments page does not work correctly because $top_level_count is not calculated with the same changes I made in comments_template_query_args.

I can work around this using the WP_Comment_Query filters, but it would be a lot nicer if comments_template_query_args would also effect the calculation of $top_level_count.

Attachments (1)

38074.diff (1.2 KB) - added by Howdy_McGee 3 weeks ago.
Adds new filter for Top Level Comment Query Args cleverly labelled comments_template_top_level_query_args

Download all attachments as: .zip

Change History (3)

#1 @desrosj
12 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release
  • Version changed from 4.6.1 to 4.5

Thanks for this, @thomaslhotta. Are you able to create a patch?

@Howdy_McGee
3 weeks ago

Adds new filter for Top Level Comment Query Args cleverly labelled comments_template_top_level_query_args

#2 @Howdy_McGee
3 weeks ago

  • Keywords has-patch needs-testing added; needs-patch removed
Note: See TracTickets for help on using tickets.