Wayback Machine
Oct NOV FEB »
Previous capture 2 Next capture
2018 2019 2020
0 captures
31 Oct 19 - 2 Mar 20
Close Minimize Help

WordPress.org

Make WordPress Core

Opened 5 days ago

Last modified 5 days ago

#48449 new defect (bug)

Parameters differ between instances of widget_comments_args filter

Reported by: johnbillion Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.0
Component: Comments Keywords: needs-patch
Focuses: Cc:
PR Number:

Description

The widget_comments_args filter is applied in two different places, but with different parameters:

  1. https://core.trac.wordpress.org/browser/tags/5.2.4/src/wp-includes/widgets/class-wp-widget-recent-comments.php?marks=99-107#L86
  2. https://core.trac.wordpress.org/browser/tags/5.2.4/src/wp-includes/blocks/latest-comments.php?marks=46-53#L35

Note that the second instance doesn't have access to an $instance.

Change History (1)

#1 @SergeyBiryukovCore Committer
5 days ago

Related: #38017

Note: See TracTickets for help on using tickets.