[wp-trac] [WordPress Trac] #42254: Duplicate news entries in Events & News dashboard widget
WordPress Trac
noreply at wordpress.org
Wed Oct 25 15:41:08 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:
--------------------------------------+-----------------------------
Comment (by Iceable):
42254.2.diff moves the main part of `wp_widget_rss_output()` into a new
function called `wp_widget_rss_get_entries()` which returns the feed's
entries in an array.
The dashboard widget uses the new `wp_widget_rss_get_entries()` function
to get the entries from the two feeds only handles the output with custom
code to skip duplicates.
Dry-ier than the first patch and `wp_widget_rss_output()` 's behavior and
output should not be affected, though it might need testing if this is
decided to be the way to go. (See notes in ticket:42254#comment:3 for
testing)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42254#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list