/home/desid573/verdenaturopathy.com.au/site3/wp-includes/blocks
NameSizeModeActions
accordion/-0755rm
accordion-heading/-0755rm
accordion-item/-0755rm
accordion-panel/-0755rm
archives/-0777rm
audio/-0777rm
avatar/-0777rm
block/-0777rm
breadcrumbs/-0755rm
button/-0777rm
buttons/-0777rm
calendar/-0777rm
categories/-0777rm
code/-0777rm
column/-0777rm
columns/-0777rm
comment-author-name/-0777rm
comment-content/-0777rm
comment-date/-0777rm
comment-edit-link/-0777rm
comment-reply-link/-0777rm
comment-template/-0777rm
comments/-0777rm
comments-pagination/-0777rm
comments-pagination-next/-0777rm
comments-pagination-numbers/-0777rm
comments-pagination-previous/-0777rm
comments-title/-0777rm
cover/-0777rm
details/-0777rm
embed/-0777rm
file/-0777rm
footnotes/-0777rm
freeform/-0777rm
gallery/-0777rm
group/-0777rm
heading/-0777rm
home-link/-0777rm
html/-0777rm
icon/-0755rm
image/-0777rm
latest-comments/-0777rm
latest-posts/-0777rm
legacy-widget/-0777rm
list/-0777rm
list-item/-0777rm
loginout/-0777rm
math/-0755rm
media-text/-0777rm
missing/-0777rm
more/-0777rm
navigation/-0777rm
navigation-link/-0777rm
navigation-overlay-close/-0755rm
navigation-submenu/-0777rm
nextpage/-0777rm
page-list/-0777rm
page-list-item/-0777rm
paragraph/-0777rm
pattern/-0777rm
post-author/-0777rm
post-author-biography/-0777rm
post-author-name/-0777rm
post-comments-count/-0755rm
post-comments-form/-0777rm
post-comments-link/-0755rm
post-content/-0777rm
post-date/-0777rm
post-excerpt/-0777rm
post-featured-image/-0777rm
post-navigation-link/-0777rm
post-template/-0777rm
post-terms/-0777rm
post-time-to-read/-0755rm
post-title/-0777rm
preformatted/-0777rm
pullquote/-0777rm
query/-0777rm
query-no-results/-0777rm
query-pagination/-0777rm
query-pagination-next/-0777rm
query-pagination-numbers/-0777rm
query-pagination-previous/-0777rm
query-title/-0777rm
query-total/-0777rm
quote/-0777rm
read-more/-0777rm
rss/-0777rm
search/-0777rm
separator/-0777rm
shortcode/-0777rm
site-logo/-0777rm
site-tagline/-0777rm
site-title/-0777rm
social-link/-0777rm
social-links/-0777rm
spacer/-0777rm
table/-0777rm
tag-cloud/-0777rm
template-part/-0777rm
term-count/-0755rm
term-description/-0777rm
term-name/-0755rm
term-template/-0755rm
terms-query/-0755rm
text-columns/-0777rm
verse/-0777rm
video/-0777rm
widget-group/-0777rm
accordion-item.php30410644editdlrm
accordion.php11470644editdlrm
archives.php43850644editdlrm
avatar.php56340644editdlrm
block.php41860644editdlrm
blocks-json.php1992380644editdlrm
breadcrumbs.php190570644editdlrm
button.php17520644editdlrm
calendar.php60750644editdlrm
categories.php49380644editdlrm
comment-author-name.php21330644editdlrm
comment-content.php24590644editdlrm
comment-date.php18630644editdlrm
comment-edit-link.php17130644editdlrm
comment-reply-link.php20750644editdlrm
comment-template.php44940644editdlrm
comments-pagination-next.php19240644editdlrm
comments-pagination-numbers.php16320644editdlrm
comments-pagination-previous.php17900644editdlrm
comments-pagination.php12610644editdlrm
comments-title.php27870644editdlrm
comments.php67840644editdlrm
cover.php74220644editdlrm
details.php14980644editdlrm
file.php18790644editdlrm
footnotes.php38180644editdlrm
gallery.php90670644editdlrm
heading.php13010644editdlrm
home-link.php54380644editdlrm
icon.php41390644editdlrm
image.php176720644editdlrm
index.php51110644editdlrm
latest-comments.php56220644editdlrm
latest-posts.php88430644editdlrm
legacy-widget.php40110644editdlrm
list.php12730644editdlrm
loginout.php16640644editdlrm
media-text.php42980644editdlrm
navigation-link.php164050644editdlrm
navigation-overlay-close.php17650644editdlrm
navigation-submenu.php125840644editdlrm
navigation.php644460644editdlrm
page-list-item.php3610644editdlrm
page-list.php150960644editdlrm
paragraph.php11390644editdlrm
pattern.php17880644editdlrm
post-author-biography.php15240644editdlrm
post-author-name.php19510644editdlrm
post-author.php27340644editdlrm
post-comments-count.php12750644editdlrm
post-comments-form.php28050644editdlrm
post-comments-link.php22370644editdlrm
post-content.php26680644editdlrm
post-date.php36920644editdlrm
post-excerpt.php43150644editdlrm
post-featured-image.php92480644editdlrm
post-navigation-link.php48070644editdlrm
post-template.php56870644editdlrm
post-terms.php36400644editdlrm
post-time-to-read.php64110644editdlrm
post-title.php21380644editdlrm
query-no-results.php18470644editdlrm
query-pagination-next.php36760644editdlrm
query-pagination-numbers.php47000644editdlrm
query-pagination-previous.php34730644editdlrm
query-pagination.php11760644editdlrm
query-title.php27710644editdlrm
query-total.php24710644editdlrm
query.php56900644editdlrm
read-more.php18300644editdlrm
require-dynamic-blocks.php49780644editdlrm
require-static-blocks.php5200644editdlrm
rss.php46090644editdlrm
search.php238170644editdlrm
shortcode.php7350644editdlrm
site-logo.php63340644editdlrm
site-tagline.php12030644editdlrm
site-title.php18640644editdlrm
social-link.php676020644editdlrm
tag-cloud.php15900644editdlrm
template-part.php104460644editdlrm
term-count.php18430644editdlrm
term-description.php17700644editdlrm
term-name.php20380644editdlrm
term-template.php45180644editdlrm
video.php27330644editdlrm
widget-group.php24380644editdlrm
Edit: /home/desid573/verdenaturopathy.com.au/site3/wp-includes/blocks/comment-template.php (4494B)
comment_ID; $filter_block_context = static function ( $context ) use ( $comment_id ) { $context['commentId'] = $comment_id; return $context; }; /* * We set commentId context through the `render_block_context` filter so * that dynamically inserted blocks (at `render_block` filter stage) * will also receive that context. * * Use an early priority to so that other 'render_block_context' filters * have access to the values. */ add_filter( 'render_block_context', $filter_block_context, 1 ); /* * We construct a new WP_Block instance from the parsed block so that * it'll receive any changes made by the `render_block_data` filter. */ $block_content = ( new WP_Block( $block->parsed_block ) )->render( array( 'dynamic' => false ) ); remove_filter( 'render_block_context', $filter_block_context, 1 ); $children = $comment->get_children(); /* * We need to create the CSS classes BEFORE recursing into the children. * This is because comment_class() uses globals like `$comment_alt` * and `$comment_thread_alt` which are order-sensitive. * * The `false` parameter at the end means that we do NOT want the function * to `echo` the output but to return a string. * See https://developer.wordpress.org/reference/functions/comment_class/#parameters. */ $comment_classes = comment_class( '', $comment->comment_ID, $comment->comment_post_ID, false ); // If the comment has children, recurse to create the HTML for the nested // comments. if ( ! empty( $children ) && ! empty( $thread_comments ) ) { if ( $comment_depth < $thread_comments_depth ) { ++$comment_depth; $inner_content = block_core_comment_template_render_comments( $children, $block ); $block_content .= sprintf( '
    %1$s
', $inner_content ); --$comment_depth; } else { $block_content .= block_core_comment_template_render_comments( $children, $block ); } } $content .= sprintf( '
  • %3$s
  • ', $comment->comment_ID, $comment_classes, $block_content ); } return $content; } /** * Renders the `core/comment-template` block on the server. * * @since 6.0.0 * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. * * @return string Returns the HTML representing the comments using the layout * defined by the block's inner blocks. */ function render_block_core_comment_template( $attributes, $content, $block ) { // Bail out early if the post ID is not set for some reason. if ( empty( $block->context['postId'] ) ) { return ''; } if ( post_password_required( $block->context['postId'] ) ) { return; } $comment_query = new WP_Comment_Query( build_comment_query_vars_from_block( $block ) ); // Get an array of comments for the current post. $comments = $comment_query->get_comments(); if ( count( $comments ) === 0 ) { return ''; } $comment_order = get_option( 'comment_order' ); if ( 'desc' === $comment_order ) { $comments = array_reverse( $comments ); } $wrapper_attributes = get_block_wrapper_attributes(); return sprintf( '
      %2$s
    ', $wrapper_attributes, block_core_comment_template_render_comments( $comments, $block ) ); } /** * Registers the `core/comment-template` block on the server. * * @since 6.0.0 */ function register_block_core_comment_template() { register_block_type_from_metadata( __DIR__ . '/comment-template', array( 'render_callback' => 'render_block_core_comment_template', 'skip_inner_blocks' => true, ) ); } add_action( 'init', 'register_block_core_comment_template' );