[wp-trac] [WordPress Trac] #38074: comments_template needs a filter for $top_level_args

WordPress Trac noreply at wordpress.org
Sun Oct 18 23:35:58 UTC 2020


#38074: comments_template needs a filter for $top_level_args
-------------------------------------------------+-------------------------
 Reporter:  thomaslhotta                         |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  5.6
Component:  Comments                             |     Version:  4.5
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-dev-   |     Focuses:
  note has-unit-tests                            |
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 Added unit tests to patch 38074.2 via [https://github.com/WordPress
 /wordpress-develop/pull/623 PR 623].

 Used the strategy @davidbaumwald laid out here
 >To test this in general, comments should be paged. Filter the
 comments_template_query_args args with something other than the default,
 filter the same arg in comments_template_top_level_query_args.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/38074#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list