- Timestamp:
- 07/25/2021 09:55:33 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r51224 r51485 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.