block_core_comment_template_render_comments example


        $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( '<ol>%1$s</ol>', $inner_content );
                --$comment_depth;
            } else {
                $block_content .= block_core_comment_template_render_comments(
                    $children,
                    $block
                );
            }
        }
Home | Imprint | This part of the site doesn't use cookies.