[wp-trac] [WordPress Trac] #50410: Media grid: hiding the "contextually created attachments" breaks the collection length count
WordPress Trac
noreply at wordpress.org
Wed Jun 17 14:48:47 UTC 2020
#50410: Media grid: hiding the "contextually created attachments" breaks the
collection length count
-----------------------------+----------------------------------------
Reporter: afercia | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-screenshots | Focuses: accessibility, javascript
-----------------------------+----------------------------------------
Comment (by afercia):
Last consideration:
See screenshot below, with the patch from #50105 applied.
See the highlighted text "Media items 37 of 84".
Expected: "Media items 40 of 84".
Actually, the collection length is altered because in the example above
there are 3 attachments that come from cropped images. This breaks the
"per page" setting and makes any logic based on the attachment length /
per_page (and maybe `hasMore()`) unreliable.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50410#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list