[wp-trac] [WordPress Trac] #42254: Duplicate news entries in Events & News dashboard widget
WordPress Trac
noreply at wordpress.org
Mon Nov 6 20:34:20 UTC 2017
#42254: Duplicate news entries in Events & News dashboard widget
-------------------------------------------------+-------------------------
Reporter: iandunn | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Future
Component: Administration | Release
Severity: minor | Version: 4.8
Keywords: good-first-bug has-patch has-unit- | Resolution:
tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by birgire):
@Iceable I agree, great suggestion using the {{{count( $displayed_links
)}}} to handle the offset for each feed.
// My previous suggestion of using the offset of 1, was meant for the
second feed, not both, as one could easily read it ;-)
I updated [attachment:42254.4.diff] with
{{{$rss_entries->get_error_message()}}} and {{{count( $displayed_links
)}}}.
I also made the
{{{test_wp_dashboard_primary_output_should_not_have_duplicated_entries}}}
more explicit.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42254#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list