pinterest-for-woocommerce
pinterest-for-woocommerce copied to clipboard
Fix pagination on feed_issues endpoint
Changes proposed in this Pull Request:
Closes #936
Fix the pagination on the Feed Issues table by slicing the results based on per_page
and paged
parameters.
Screenshots:
Detailed test instructions:
- Requires a site connected to Pinterest and a synched catalog with issues.
- Go to wp-admin/Marketing/Pinterest
- If your catalog has more than 25 issues, check the pagination works
- If your catalog has less than 25 issues, add the parameters to the query and check the number of issues displayed is correct. (Ex: on a catalog with 18 issues
page=wc-admin&path=%2Fpinterest%2Fcatalog&paged=2&per_page=10
should display 8 issues)
Additional details:
Changelog entry
Fix - Pagination on Feed Issues table.