Changeset 51507 for branches/5.8/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 07/28/2021 01:01:32 PM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/src/wp-admin/includes/ajax-actions.php
r51224 r51507 3004 3004 } 3005 3005 3006 $max_pages = ceil( $total_posts / (int) $attachments_query->query['posts_per_page'] ); 3006 $posts_per_page = (int) $attachments_query->query['posts_per_page']; 3007 3008 $max_pages = $posts_per_page ? ceil( $total_posts / $posts_per_page ) : 0; 3007 3009 3008 3010 header( 'X-WP-Total: ' . (int) $total_posts );
Note: See TracChangeset
for help on using the changeset viewer.