-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block Library: Add Comments Pagination Numbers block #36890
Conversation
Size Change: +663 B (0%) Total Size: 1.11 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks very close to ready. It's optimized for the usage with a single post type instance. It's fine but we should agree on the path forward in regards to that.
packages/block-library/src/comments-pagination-numbers/block.json
Outdated
Show resolved
Hide resolved
2bd8c6f
to
497e260
Compare
Copy/paste the Query Pagination Numbers block and add a few changes, like the block name.
Co-authored-by: Greg Ziółkowski <[email protected]>
d5b672a
to
bea7423
Compare
@DAreRodz, is there anything left in this PR? It's still in a draft mode. |
@gziolo yes, it is. I want to at least support links with a permalink structure other than plain (example.blog/?p=1&cpage=1), which is the only one that is working right now. The paginate_comments_link function that renders the links changes its output according to what it is specified in the permalink settings. So, we would have to either change the Once I end with that, this PR would be ready to review. 🙂 |
OK, I've found the problem. It was that I was using Just testing everything before updating this PR's status. 🧑💻 |
packages/block-library/src/comments-pagination-numbers/block.json
Outdated
Show resolved
Hide resolved
Co-authored-by: Carlos Bravo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. But as @gziolo said, I think this pagination numbers block may not work as expected if we load a Latest Comments Block
.
Maybe we could work on the pagination links to behave the same as this block, and then create a follow-up issue to handle general comments.
Description
Add a block that renders links for different page numbers inside the Comments Pagination block. It works similar to the Query Pagination Numbers block.
Will close #35010
How has this been tested?
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).