Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #53773, comment 1


Ignore:
Timestamp:
07/24/2021 04:38:47 PM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53773, comment 1

    initial v1  
    55It looks like a plugin or theme changes the `posts_per_page` value to `0` using the `ajax_query_attachments_args` filter. By default, it's set to 40 in [source:tags/5.8/src/js/media/models/query.js?marks=174#L162 wp-includes/js/media-models.js].
    66
    7 We should be able to check value and set `$max_pages` to `0` too in that case.
     7We should be able to check the value and set `$max_pages` to `0` too in that case.