/home/techb158/public_html/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/-0755rm
embed/-0777rm
file/-0777rm
footnotes/-0755rm
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/-0755rm
paragraph/-0777rm
pattern/-0777rm
playlist/-0755rm
playlist-track/-0755rm
post-author/-0777rm
post-author-biography/-0777rm
post-author-name/-0755rm
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/-0755rm
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
tab-list/-0755rm
tab-panel/-0755rm
tab-panels/-0755rm
table/-0777rm
tabs/-0755rm
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.php30520666editdlrm
accordion.php11470666editdlrm
archives.php43850666editdlrm
avatar.php56380666editdlrm
block.php31220666editdlrm
blocks-json.php2106610666editdlrm
breadcrumbs.php190570666editdlrm
button.php42110666editdlrm
calendar.php60750666editdlrm
categories.php49380666editdlrm
comment-author-name.php21360666editdlrm
comment-content.php24590666editdlrm
comment-date.php18650666editdlrm
comment-edit-link.php17130666editdlrm
comment-reply-link.php20750666editdlrm
comment-template.php44940666editdlrm
comments-pagination-next.php19240666editdlrm
comments-pagination-numbers.php16320666editdlrm
comments-pagination-previous.php17900666editdlrm
comments-pagination.php12610666editdlrm
comments-title.php27870666editdlrm
comments.php67840666editdlrm
cover.php74040666editdlrm
details.php14980666editdlrm
file.php18790666editdlrm
footnotes.php38180666editdlrm
gallery.php223450666editdlrm
heading.php13010666editdlrm
home-link.php47030666editdlrm
icon.php43740666editdlrm
image.php176420666editdlrm
index.php51040666editdlrm
latest-comments.php56220666editdlrm
latest-posts.php104590666editdlrm
legacy-widget.php40110666editdlrm
list.php12730666editdlrm
loginout.php21230666editdlrm
media-text.php42980666editdlrm
navigation-link.php166540666editdlrm
navigation-overlay-close.php17650666editdlrm
navigation-submenu.php110500666editdlrm
navigation.php708920666editdlrm
page-list-item.php3610666editdlrm
page-list.php138630666editdlrm
paragraph.php11390666editdlrm
pattern.php17880666editdlrm
playlist-track.php24870666editdlrm
playlist.php66160666editdlrm
post-author-biography.php15240666editdlrm
post-author-name.php19620666editdlrm
post-author.php27340666editdlrm
post-comments-count.php12750666editdlrm
post-comments-form.php28050666editdlrm
post-comments-link.php22370666editdlrm
post-content.php26680666editdlrm
post-date.php36920666editdlrm
post-excerpt.php43150666editdlrm
post-featured-image.php94520666editdlrm
post-navigation-link.php48070666editdlrm
post-template.php59400666editdlrm
post-terms.php36400666editdlrm
post-time-to-read.php64110666editdlrm
post-title.php21380666editdlrm
query-no-results.php18470666editdlrm
query-pagination-next.php36760666editdlrm
query-pagination-numbers.php47000666editdlrm
query-pagination-previous.php34730666editdlrm
query-pagination.php11760666editdlrm
query-title.php27710666editdlrm
query-total.php24710666editdlrm
query.php56900666editdlrm
read-more.php18460666editdlrm
require-dynamic-blocks.php52560666editdlrm
require-static-blocks.php5350666editdlrm
rss.php46090666editdlrm
search.php256000666editdlrm
shortcode.php7350666editdlrm
site-logo.php63340666editdlrm
site-tagline.php12030666editdlrm
site-title.php18640666editdlrm
social-link.php676020666editdlrm
tab-list.php23220666editdlrm
tab-panel.php16690666editdlrm
tabs.php39490666editdlrm
tag-cloud.php15860666editdlrm
template-part.php99640666editdlrm
term-count.php18430666editdlrm
term-description.php17700666editdlrm
term-name.php20380666editdlrm
term-template.php45180666editdlrm
video.php27330666editdlrm
widget-group.php24380666editdlrm
Edit: /home/techb158/public_html/wp-includes/blocks/rss.php (4609B)
' . __( 'Adding an RSS feed to this site’s homepage is not supported, as it could lead to a loop that slows down your site. Try using another block, like the Latest Posts block, to list posts from the site.' ) . '
'; } $rss = fetch_feed( $attributes['feedURL'] ); if ( is_wp_error( $rss ) ) { return '
' . __( 'RSS Error:' ) . ' ' . esc_html( $rss->get_error_message() ) . '
'; } if ( ! $rss->get_item_quantity() ) { return '
' . __( 'An error has occurred, which probably means the feed is down. Try again later.' ) . '
'; } $rss_items = $rss->get_items( 0, $attributes['itemsToShow'] ); $list_items = ''; $open_in_new_tab = ! empty( $attributes['openInNewTab'] ); $rel = ! empty( $attributes['rel'] ) ? trim( $attributes['rel'] ) : ''; $link_attributes = ''; if ( $open_in_new_tab ) { $link_attributes .= ' target="_blank"'; } if ( '' !== $rel ) { $link_attributes .= ' rel="' . esc_attr( $rel ) . '"'; } foreach ( $rss_items as $item ) { $title = esc_html( trim( strip_tags( html_entity_decode( $item->get_title() ) ) ) ); if ( empty( $title ) ) { $title = __( '(no title)' ); } $link = $item->get_link(); $link = esc_url( $link ); if ( $link ) { $title = "{$title}"; } $title = "
{$title}
"; $date_markup = ''; if ( ! empty( $attributes['displayDate'] ) ) { $timestamp = $item->get_date( 'U' ); if ( $timestamp ) { $gmt_offset = get_option( 'gmt_offset' ); $timestamp += (int) ( (float) $gmt_offset * HOUR_IN_SECONDS ); $date_markup = sprintf( ' ', esc_attr( date_i18n( 'c', $timestamp ) ), esc_html( date_i18n( get_option( 'date_format' ), $timestamp ) ) ); } } $author = ''; if ( $attributes['displayAuthor'] ) { $author = $item->get_author(); if ( is_object( $author ) ) { $author = $author->get_name(); if ( ! empty( $author ) ) { $author = '' . sprintf( /* translators: byline. %s: author. */ __( 'by %s' ), esc_html( strip_tags( $author ) ) ) . ''; } } } $excerpt = ''; $description = $item->get_description(); if ( $attributes['displayExcerpt'] && ! empty( $description ) ) { $excerpt = html_entity_decode( $description, ENT_QUOTES, get_option( 'blog_charset' ) ); $excerpt = esc_attr( wp_trim_words( $excerpt, $attributes['excerptLength'], ' […]' ) ); // Change existing [...] to […]. if ( str_ends_with( $excerpt, '[...]' ) ) { $excerpt = substr( $excerpt, 0, -5 ) . '[…]'; } $excerpt = '
' . esc_html( $excerpt ) . '
'; } $list_items .= "
  • {$title}{$date_markup}{$author}{$excerpt}
  • "; } $classnames = array(); if ( isset( $attributes['blockLayout'] ) && 'grid' === $attributes['blockLayout'] ) { $classnames[] = 'is-grid'; } if ( isset( $attributes['columns'] ) && 'grid' === $attributes['blockLayout'] ) { $classnames[] = 'columns-' . $attributes['columns']; } if ( $attributes['displayDate'] ) { $classnames[] = 'has-dates'; } if ( $attributes['displayAuthor'] ) { $classnames[] = 'has-authors'; } if ( $attributes['displayExcerpt'] ) { $classnames[] = 'has-excerpts'; } $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classnames ) ) ); return sprintf( '', $wrapper_attributes, $list_items ); } /** * Registers the `core/rss` block on server. * * @since 5.2.0 */ function register_block_core_rss() { register_block_type_from_metadata( __DIR__ . '/rss', array( 'render_callback' => 'render_block_core_rss', ) ); } add_action( 'init', 'register_block_core_rss' );