WP File Manager
Current Path:
/
www
/
htdocs
/
w0103d72
/
Kronauer-20191025
/
extranet
/
wp-includes
/
blocks
/
Name
Action
..
archives
archives.php
Edit
audio
avatar
avatar.php
Edit
block
block.php
Edit
blocks-json.php
Edit
button
button.php
Edit
buttons
calendar
calendar.php
Edit
categories
categories.php
Edit
code
column
columns
comment-author-name
comment-author-name.php
Edit
comment-content
comment-content.php
Edit
comment-date
comment-date.php
Edit
comment-edit-link
comment-edit-link.php
Edit
comment-reply-link
comment-reply-link.php
Edit
comment-template
comment-template.php
Edit
comments
comments-pagination
comments-pagination-next
comments-pagination-next.php
Edit
comments-pagination-numbers
comments-pagination-numbers.php
Edit
comments-pagination-previous
comments-pagination-previous.php
Edit
comments-pagination.php
Edit
comments-title
comments-title.php
Edit
comments.php
Edit
cover
cover.php
Edit
details
embed
file
file.php
Edit
footnotes
footnotes.php
Edit
freeform
gallery
gallery.php
Edit
group
heading
heading.php
Edit
home-link
home-link.php
Edit
html
image
image.php
Edit
index.php
Edit
latest-comments
latest-comments.php
Edit
latest-posts
latest-posts.php
Edit
legacy-widget
legacy-widget.php
Edit
list
list-item
list.php
Edit
loginout
loginout.php
Edit
media-text
media-text.php
Edit
missing
more
navigation
navigation-link
navigation-link.php
Edit
navigation-submenu
navigation-submenu.php
Edit
navigation.php
Edit
nextpage
page-list
page-list-item
page-list-item.php
Edit
page-list.php
Edit
paragraph
pattern
pattern.php
Edit
post-author
post-author-biography
post-author-biography.php
Edit
post-author-name
post-author-name.php
Edit
post-author.php
Edit
post-comments-form
post-comments-form.php
Edit
post-content
post-content.php
Edit
post-date
post-date.php
Edit
post-excerpt
post-excerpt.php
Edit
post-featured-image
post-featured-image.php
Edit
post-navigation-link
post-navigation-link.php
Edit
post-template
post-template.php
Edit
post-terms
post-terms.php
Edit
post-title
post-title.php
Edit
preformatted
pullquote
query
query-no-results
query-no-results.php
Edit
query-pagination
query-pagination-next
query-pagination-next.php
Edit
query-pagination-numbers
query-pagination-numbers.php
Edit
query-pagination-previous
query-pagination-previous.php
Edit
query-pagination.php
Edit
query-title
query-title.php
Edit
query.php
Edit
quote
read-more
read-more.php
Edit
require-dynamic-blocks.php
Edit
require-static-blocks.php
Edit
rss
rss.php
Edit
search
search.php
Edit
separator
shortcode
shortcode.php
Edit
site-logo
site-logo.php
Edit
site-tagline
site-tagline.php
Edit
site-title
site-title.php
Edit
social-link
social-link.php
Edit
social-links
spacer
table
tag-cloud
tag-cloud.php
Edit
template-part
template-part.php
Edit
term-description
term-description.php
Edit
text-columns
verse
video
widget-group
widget-group.php
Edit
Editing: comment-date.php
<?php /** * Server-side rendering of the `core/comment-date` block. * * @package WordPress */ /** * Renders the `core/comment-date` 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 Return the post comment's date. */ function render_block_core_comment_date( $attributes, $content, $block ) { if ( ! isset( $block->context['commentId'] ) ) { return ''; } $comment = get_comment( $block->context['commentId'] ); if ( empty( $comment ) ) { return ''; } $classes = ( isset( $attributes['style']['elements']['link']['color']['text'] ) ) ? 'has-link-color' : ''; $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) ); if ( isset( $attributes['format'] ) && 'human-diff' === $attributes['format'] ) { // translators: %s: human-readable time difference. $formatted_date = sprintf( __( '%s ago' ), human_time_diff( get_comment_date( 'U', $comment ) ) ); } else { $formatted_date = get_comment_date( empty( $attributes['format'] ) ? '' : $attributes['format'], $comment ); } $link = get_comment_link( $comment ); if ( ! empty( $attributes['isLink'] ) ) { $formatted_date = sprintf( '<a href="%1s">%2s</a>', esc_url( $link ), $formatted_date ); } return sprintf( '<div %1$s><time datetime="%2$s">%3$s</time></div>', $wrapper_attributes, esc_attr( get_comment_date( 'c', $comment ) ), $formatted_date ); } /** * Registers the `core/comment-date` block on the server. * * @since 6.0.0 */ function register_block_core_comment_date() { register_block_type_from_metadata( __DIR__ . '/comment-date', array( 'render_callback' => 'render_block_core_comment_date', ) ); } add_action( 'init', 'register_block_core_comment_date' );