Make WordPress Core


Ignore:
Timestamp:
11/02/2021 06:32:24 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Media: Use WP_Query::get() method to retrieve the posts_per_page value in wp_ajax_query_attachments().

This avoids a PHP notice and ensures that a default value is always provided if none is set by the user.

Follow-up to [51145], [51485].

Props davidwebca, mukesh27, circlecube, desrosj.
Merges [51982] to the 5.8 branch.
Fixes #54129.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.