WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 7 weeks ago

#53787 new enhancement

Allow changing number of attachments displayed

Reported by: grapplerulrich Owned by:
Milestone: 5.9 Priority: normal
Severity: normal Version: 5.8
Component: Media Keywords:
Focuses: ui, javascript, administration Cc:

Description

#50105 introduced a new load more button to replace infinite scroll for media library.

In the initial version the number of per page is set in the code to 40.

In #50105 was discussed adding a filter to make it developer customizable. There are use cases for having more or less than the default 40. This should apply for the initial and later requests.

In a second step:

It would be nice if this were user controllable like posts per page, or terms per page are from the screen options tab. We would need to integrate this into the modal itself though since it operates in numerous contexts.

from @adamsilverstein


Change History (12)

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


3 months ago

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


3 months ago

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


3 months ago

#4 @shaunbowen
2 months ago

This should be a simple option in the WordPress Media Settings for logged in users.

Either ON or LIMIT to [Qty.]

This ticket was mentioned in Slack in #core-media by hellofromtonya. View the logs.


2 months ago

#6 @hellofromTonya
2 months ago

#53916 was marked as a duplicate.

#7 @hellofromTonya
2 months ago

Copying notes from a duplicate ticket opened today from the Media Components team:

@antpb wrote in ticket #53916:

In #53827 it was reported that the count of items loaded when clicking the "load more items" button in the Media Library was too low and caused many clicks to get to an item that folks wanted.

In 53827 we are increasing the count from 40 to 80 as a temporary way to solve this issue in a minor release. This value should be configurable in some way.

A future enhancement for this has a few directions we could go
1) Screen Option (which inherits a filter to set a value)
2) Just a plain filter that allows the value to be customized
3) ??? Any better ones?

@pbiron wrote:

My preference would be to add a screen option. this would be analogous to the Number of items per page screen option in list mode.

There has been some talk of "load as many items as are already showing" when the "Load more" button is clicked. That would be kind of hard to do with a screen option, but I'm not sure doing that is a good itea, anyway :-)

#8 @hellofromTonya
2 months ago

  • Milestone changed from Awaiting Review to 5.9

During today's Media Component meeting, it was agreed to address this enhancement in the 5.9 cycle.

Next step for this ticket? Discuss the different ways to achieve customization and then get consensus.

This ticket was mentioned in Slack in #core-media by hellofromtonya. View the logs.


7 weeks ago

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


7 weeks ago

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


7 weeks ago

#12 @antpb
7 weeks ago

Worth noting in this ticket that currently screen options are not visible in the grid view of the Media Library. Part of this task will likely be exposing that UI in the grid view.

Note: See TracTickets for help on using tickets.