WordPress.org

Make WordPress Core

Opened 6 days ago

Last modified 6 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)

Note: See TracTickets for help on using tickets.