fix: add `?per_page=100` to tags, categories, pages, authors
otherwise, can be confusion. and in most case- tags and categories for personal, even business blog exceed 10 but not 100.
request: update README
Summary by CodeRabbit
-
Bug Fixes
- Improved data retrieval for categories, tags, pages, and authors to fetch complete result sets.
@2u841r is attempting to deploy a commit to the 9d8 Team on Vercel.
A member of the Team first needs to authorize it.
Walkthrough
Four API fetching functions in the WordPress library (getAllCategories, getAllTags, getAllPages, getAllAuthors) now append ?per_page=100 to their endpoints to request 100 items per page instead of the default pagination limit.
Changes
| Cohort / File(s) | Summary |
|---|---|
WordPress API pagination updates lib/wordpress.ts |
Modified getAllCategories, getAllTags, getAllPages, and getAllAuthors to fetch with explicit per_page=100 query parameter appended to endpoints |
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~5–10 minutes
- Homogeneous, repetitive pattern applied consistently across four functions
- Single file modified with straightforward query parameter additions
- No structural or logic complexity changes
- Verify that the query parameter syntax is correct and doesn't break existing functionality
Suggested reviewers
- youngbloodcyb
Poem
🐰 Four functions march in perfect stride, Each one asks for more items to collide, From 100 to 100, the pattern so neat, Pagination's rhythm now sounds more sweet!
Pre-merge checks and finishing touches
❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | ⚠️ Warning | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. | You can run @coderabbitai generate docstrings to improve docstring coverage. |
✅ Passed checks (2 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The PR title clearly and specifically describes the main change: adding ?per_page=100 query parameter to four API endpoints (tags, categories, pages, authors). |
✨ Finishing touches
- [ ] 📝 Generate docstrings
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests
- [ ] Post copyable unit tests in a comment
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.