[wp-trac] [WordPress Trac] #42254: Duplicate news entries in Events & News dashboard widget
WordPress Trac
noreply at wordpress.org
Wed Oct 25 09:35:57 UTC 2017
#42254: Duplicate news entries in Events & News dashboard widget
--------------------------------------+-----------------------------
Reporter: iandunn | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Future Release
Component: Administration | Version: 4.8
Severity: minor | Resolution:
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+-----------------------------
Changes (by Iceable):
* keywords: needs-patch good-first-bug => good-first-bug has-patch
Comment:
To reproduce the issue (and test a solution) when there is no duplicates
in the last 3 posts from planet.wordpress.org, you can have it display
more than 3 by editing line 1348.
https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-
admin/includes/dashboard.php#L1348.
The output of this widget is cached, so one may also need to skip the
cached output by commenting out lines 983 to 988 for testing.
https://core.trac.wordpress.org/browser/tags/4.8.2/src/wp-
admin/includes/dashboard.php#L983
The patch above replaces `wp_widget_rss_output()` with its own source code
as suggested by @birgire , modified to detect and skip duplicate entries.
(This is my very first patch so please bear with me and let me know if I'm
doing anything wrong :) )
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42254#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list