[wp-trac] [WordPress Trac] #42254: Duplicate news entries in Events & News dashboard widget
WordPress Trac
noreply at wordpress.org
Fri Nov 3 16:54:13 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 Iceable):
The offset could be 0 for the first feed (obviously), and then the the sum
of `$args['items']` of the previous feed(s) for the next one(s).
With the current feeds this would pull 1 item from the first feed and 3+1
from the second.
And if I am not mistaken this is exactly the margin needed to anticipate
duplicates even in case the `'items'` args values change or if another
feed is added in the future.
I'm not even sure this will ever happen, but I like to avoid arbitrary and
make things as flexible as possible :)
You are absolutely right about the filename, my bad. Files with camelCase
names seem much older, and those named with snake-case seem to be the most
recent ones.
And `conforming to the standards` > `trying to be consistent with old
conventions`!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42254#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list