WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #42254, comment 6


Ignore:
Timestamp:
10/25/2017 03:47:22 PM (2 years ago)
Author:
Iceable
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42254, comment 6

    initial v1  
    1142254.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.
    22
    3 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.
     3The dashboard widget uses the new `wp_widget_rss_get_entries()` function to get the entries from the two feeds and only handles the output with custom code to skip duplicates.
    44
    55Dry-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)