Skip to content

Commit

Permalink
Add comments pagination on Comments Query template (#37610)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal authored Dec 23, 2021
1 parent 76940b0 commit 5a8259b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-library/src/comments-query-loop/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ import { __ } from '@wordpress/i18n';
*/
import QueryToolbar from './toolbar';

const TEMPLATE = [ [ 'core/comment-template' ] ];
const TEMPLATE = [
[ 'core/comment-template' ],
[ 'core/comments-pagination' ],
];

export default function CommentsQueryLoopEdit( { attributes, setAttributes } ) {
const { perPage, tagName: TagName } = attributes;
Expand Down

0 comments on commit 5a8259b

Please sign in to comment.