Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/wp-includes/blocks/comments-query-loop.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
/**
* Server-side rendering of the `core/comments-query-loop` block.
*
* @package WordPress
*/

/**
* Registers the `core/comments-query-loop` block on the server.
* We need this file in order to have the title and description for the block translations.
* More info in the issue: https://github.com/WordPress/gutenberg/issues/41292
*/
function register_block_core_comments_query_loop() {
register_block_type_from_metadata(
__DIR__ . '/comments-query-loop'
);
}
add_action( 'init', 'register_block_core_comments_query_loop' );
1 change: 1 addition & 0 deletions src/wp-includes/blocks/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
require ABSPATH . WPINC . '/blocks/comments-pagination-numbers.php';
require ABSPATH . WPINC . '/blocks/comments-pagination-previous.php';
require ABSPATH . WPINC . '/blocks/comments-pagination.php';
require ABSPATH . WPINC . '/blocks/comments-query-loop.php';
require ABSPATH . WPINC . '/blocks/comments-title.php';
require ABSPATH . WPINC . '/blocks/cover.php';
require ABSPATH . WPINC . '/blocks/file.php';
Expand Down