[wp-trac] [WordPress Trac] #48449: Parameters differ between instances of widget_comments_args filter
WordPress Trac
noreply at wordpress.org
Mon Oct 28 20:05:33 UTC 2019
#48449: Parameters differ between instances of widget_comments_args filter
--------------------------+-----------------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 5.0
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
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`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48449>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list