forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comment Template: Optimize comment pagination with nested replies (Wo…
…rdPress#38187) * REST: Set children attr of comments as embeddable * REST: Expose some discussion settings * Add hook to generate comment query args * Fix how the default comments page index is computed * Move REST API code to experimental * Use experimental settings in Comment Template * Add `defaultPage` attribute to Comments Query Loop * Keep other attributes when `inherit` changes * Fix `comment_order` option usage * Replace `asc` with `ASC` inside `$comment_args` * Fix `array_reverse` and order in comment template * Refactor `build_comment_query_vars` to use `inherit` * Simplify `build_comment_query_vars` function * Adapt Next and Numbers blocks to use `inherit` * Run `format-php` and fix lint errors * Regenerate comment query loop fixtures * Update comment template PHP tests Added a new test case for when `comments/inherit` is `true`. * Write JSDocs and refactor Comment Template hooks * Use spread syntax to clone `topLevelComments` * Simplify comments. * Adapt some code after rebase * Fix comment page index for oldest comments * Pass missing context to Comment Pagination blocks * Fix order when `inherit` is true * Add `paginationArrow` back to Pagination Next
- Loading branch information
Showing
18 changed files
with
349 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.