H69UNtblNBNpha2dtB1Odn8qYp1Qk5NK2gi7yfceofo9N
e:
/
home
/
ajudasindico
/
Web
/
wp-includes
/
blocks
/
Nama File / Folder
Size
Action
archives
--
NONE
audio
--
NONE
block
--
NONE
button
--
NONE
buttons
--
NONE
calendar
--
NONE
categories
--
NONE
code
--
NONE
column
--
NONE
columns
--
NONE
cover
--
NONE
embed
--
NONE
file
--
NONE
freeform
--
NONE
gallery
--
NONE
group
--
NONE
heading
--
NONE
html
--
NONE
image
--
NONE
latest-comments
--
NONE
latest-posts
--
NONE
legacy-widget
--
NONE
list
--
NONE
loginout
--
NONE
media-text
--
NONE
missing
--
NONE
more
--
NONE
navigation
--
NONE
navigation-link
--
NONE
navigation-submenu
--
NONE
nextpage
--
NONE
page-list
--
NONE
paragraph
--
NONE
pattern
--
NONE
post-author
--
NONE
post-comments
--
NONE
post-content
--
NONE
post-date
--
NONE
post-excerpt
--
NONE
post-featured-image
--
NONE
post-navigation-link
--
NONE
post-template
--
NONE
post-terms
--
NONE
post-title
--
NONE
preformatted
--
NONE
pullquote
--
NONE
query
--
NONE
query-pagination
--
NONE
query-pagination-next
--
NONE
query-pagination-numbers
--
NONE
query-pagination-previous
--
NONE
query-title
--
NONE
quote
--
NONE
rss
--
NONE
search
--
NONE
separator
--
NONE
shortcode
--
NONE
site-logo
--
NONE
site-tagline
--
NONE
site-title
--
NONE
social-link
--
NONE
social-links
--
NONE
spacer
--
NONE
table
--
NONE
tag-cloud
--
NONE
template-part
--
NONE
term-description
--
NONE
text-columns
--
NONE
verse
--
NONE
video
--
NONE
widget-group
--
NONE
archives.php
2.788KB
Hapus
Edit
Rename
block.php
1.473KB
Hapus
Edit
Rename
calendar.php
4.455KB
Hapus
Edit
Rename
categories.php
2.705KB
Hapus
Edit
Rename
file.php
0.876KB
Hapus
Edit
Rename
gallery.php
1.499KB
Hapus
Edit
Rename
image.php
1.256KB
Hapus
Edit
Rename
index.php
3.148KB
Hapus
Edit
Rename
latest-comments.php
4.896KB
Hapus
Edit
Rename
latest-posts.php
6.957KB
Hapus
Edit
Rename
legacy-widget.php
4.394KB
Hapus
Edit
Rename
loginout.php
1.348KB
Hapus
Edit
Rename
navigation-link.php
11.048KB
Hapus
Edit
Rename
navigation-submenu.php
9.823KB
Hapus
Edit
Rename
navigation.php
22.79KB
Hapus
Edit
Rename
page-list.php
12.879KB
Hapus
Edit
Rename
pattern.php
0.899KB
Hapus
Edit
Rename
post-author.php
2.118KB
Hapus
Edit
Rename
post-comments.php
2.434KB
Hapus
Edit
Rename
post-content.php
2.352KB
Hapus
Edit
Rename
post-date.php
1.495KB
Hapus
Edit
Rename
post-excerpt.php
2.415KB
Hapus
Edit
Rename
post-featured-image.php
1.893KB
Hapus
Edit
Rename
post-navigation-link.php
3.468KB
Hapus
Edit
Rename
post-template.php
2.771KB
Hapus
Edit
Rename
post-terms.php
1.603KB
Hapus
Edit
Rename
post-title.php
1.595KB
Hapus
Edit
Rename
query-pagination-next.php
2.644KB
Hapus
Edit
Rename
query-pagination-numbers.php
3.726KB
Hapus
Edit
Rename
query-pagination-previous.php
2.103KB
Hapus
Edit
Rename
query-pagination.php
0.87KB
Hapus
Edit
Rename
query-title.php
1.346KB
Hapus
Edit
Rename
query.php
0.297KB
Hapus
Edit
Rename
rss.php
3.17KB
Hapus
Edit
Rename
search.php
12.466KB
Hapus
Edit
Rename
shortcode.php
0.681KB
Hapus
Edit
Rename
site-logo.php
5.747KB
Hapus
Edit
Rename
site-tagline.php
0.971KB
Hapus
Edit
Rename
site-title.php
1.543KB
Hapus
Edit
Rename
social-link.php
57.915KB
Hapus
Edit
Rename
tag-cloud.php
1.284KB
Hapus
Edit
Rename
template-part.php
7.147KB
Hapus
Edit
Rename
term-description.php
1.145KB
Hapus
Edit
Rename
widget-group.php
2.104KB
Hapus
Edit
Rename
<=Back
<?php /** * Server-side rendering of the `core/post-comments` block. * * @package WordPress */ /** * Renders the `core/post-comments` block on the server. * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. * @return string Returns the filtered post comments for the current post wrapped inside "p" tags. */ function render_block_core_post_comments( $attributes, $content, $block ) { global $post; $post_id = $block->context['postId']; if ( ! isset( $post_id ) ) { return ''; } $comment_args = array( 'post_id' => $post_id, 'count' => true, ); // Return early if there are no comments and comments are closed. if ( ! comments_open( $post_id ) && get_comments( $comment_args ) === 0 ) { return ''; } $post_before = $post; $post = get_post( $post_id ); setup_postdata( $post ); ob_start(); // There's a deprecation warning generated by WP Core. // Ideally this deprecation is removed from Core. // In the meantime, this removes it from the output. add_filter( 'deprecated_file_trigger_error', '__return_false' ); comments_template(); remove_filter( 'deprecated_file_trigger_error', '__return_false' ); $post = $post_before; $classes = ''; if ( isset( $attributes['textAlign'] ) ) { $classes .= 'has-text-align-' . $attributes['textAlign']; } $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) ); $output = ob_get_clean(); return sprintf( '<div %1$s>%2$s</div>', $wrapper_attributes, $output ); } /** * Registers the `core/post-comments` block on the server. */ function register_block_core_post_comments() { register_block_type_from_metadata( __DIR__ . '/post-comments', array( 'render_callback' => 'render_block_core_post_comments', ) ); } add_action( 'init', 'register_block_core_post_comments' ); /** * Use the button block classes for the form-submit button. * * @param array $fields The default comment form arguments. * * @return array Returns the modified fields. */ function post_comments_block_form_defaults( $fields ) { if ( wp_is_block_theme() ) { $fields['submit_button'] = '<input name="%1$s" type="submit" id="%2$s" class="%3$s wp-block-button__link" value="%4$s" />'; $fields['submit_field'] = '<p class="form-submit wp-block-button">%1$s %2$s</p>'; } return $fields; } add_filter( 'comment_form_defaults', 'post_comments_block_form_defaults' );
Liking