PATH:
home
/
carfac
/
public_html
/
aeromediaimages.com
/
wp-includes
/
blocks
<?php /** * Server-side rendering of the `core/block` block. * * @package WordPress */ /** * Renders the `core/block` block on server. * * @param array $attributes The block attributes. * * @return string Rendered HTML of the referenced block. */ function render_block_core_block( $attributes ) { static $seen_refs = array(); if ( empty( $attributes['ref'] ) ) { return ''; } $reusable_block = get_post( $attributes['ref'] ); if ( ! $reusable_block || 'wp_block' !== $reusable_block->post_type ) { return ''; } if ( isset( $seen_refs[ $attributes['ref'] ] ) ) { // WP_DEBUG_DISPLAY must only be honored when WP_DEBUG. This precedent // is set in `wp_debug_mode()`. $is_debug = WP_DEBUG && WP_DEBUG_DISPLAY; return $is_debug ? // translators: Visible only in the front end, this warning takes the place of a faulty block. __( '[block rendering halted]' ) : ''; } if ( 'publish' !== $reusable_block->post_status || ! empty( $reusable_block->post_password ) ) { return ''; } $seen_refs[ $attributes['ref'] ] = true; // Handle embeds for reusable blocks. global $wp_embed; $content = $wp_embed->run_shortcode( $reusable_block->post_content ); $content = $wp_embed->autoembed( $content ); $content = do_blocks( $content ); unset( $seen_refs[ $attributes['ref'] ] ); return $content; } /** * Registers the `core/block` block. */ function register_block_core_block() { register_block_type_from_metadata( __DIR__ . '/block', array( 'render_callback' => 'render_block_core_block', ) ); } add_action( 'init', 'register_block_core_block' );
[-] template-part.php
[edit]
[-] page-list.php
[edit]
[+]
calendar
[-] page-list-item.php
[edit]
[+]
query-pagination-numbers
[-] post-author-biography.php
[edit]
[+]
social-links
[-] error_log
[edit]
[+]
html
[-] social-link.php
[edit]
[+]
embed
[+]
template-part
[-] query-pagination-next.php
[edit]
[+]
audio
[+]
comments-pagination-numbers
[-] site-tagline.php
[edit]
[+]
archives
[+]
navigation-submenu
[-] cover.php
[edit]
[-] file.php
[edit]
[+]
comments
[+]
image
[+]
site-tagline
[-] post-author.php
[edit]
[-] comment-reply-link.php
[edit]
[-] image.php
[edit]
[-] archives.php
[edit]
[+]
comments-pagination-next
[+]
query-no-results
[+]
separator
[-] post-featured-image.php
[edit]
[+]
legacy-widget
[-] post-content.php
[edit]
[+]
comment-date
[-] comment-content.php
[edit]
[+]
table
[+]
site-title
[-] post-navigation-link.php
[edit]
[-] comment-template.php
[edit]
[-] comment-author-name.php
[edit]
[-] index.php
[edit]
[+]
post-author
[-] rss.php
[edit]
[+]
list
[-] gallery.php
[edit]
[-] calendar.php
[edit]
[+]
comments-pagination
[-] widget-group.php
[edit]
[+]
query-title
[+]
comment-edit-link
[-] post-title.php
[edit]
[-] post-date.php
[edit]
[-] home-link.php
[edit]
[+]
pattern
[+]
site-logo
[+]
missing
[-] post-terms.php
[edit]
[-] shortcode.php
[edit]
[-] query.php
[edit]
[+]
post-navigation-link
[+]
preformatted
[-] read-more.php
[edit]
[+]
query-pagination-next
[+]
post-terms
[+]
gallery
[+]
block
[+]
latest-posts
[-] navigation-link.php
[edit]
[+]
more
[+]
rss
[+]
tag-cloud
[+]
paragraph
[+]
comment-content
[-] query-pagination-numbers.php
[edit]
[+]
query-pagination-previous
[-] post-template.php
[edit]
[+]
comments-pagination-previous
[-] comments-pagination-next.php
[edit]
[-] tag-cloud.php
[edit]
[-] comments.php
[edit]
[-] comment-edit-link.php
[edit]
[+]
post-author-name
[+]
widget-group
[-] query-pagination-previous.php
[edit]
[-] pattern.php
[edit]
[-] avatar.php
[edit]
[-] navigation.php
[edit]
[+]
comment-template
[+]
quote
[+]
code
[-] comments-pagination.php
[edit]
[-] latest-comments.php
[edit]
[-] require-static-blocks.php
[edit]
[-] query-title.php
[edit]
[+]
query
[+]
term-description
[-] admin.php
[edit]
[+]
page-list-item
[+]
latest-comments
[+]
post-author-biography
[+]
video
[+]
navigation
[+]
freeform
[+]
comment-author-name
[+]
comment-reply-link
[+]
footnotes
[+]
read-more
[-] comments-pagination-numbers.php
[edit]
[-] footnotes.php
[edit]
[+]
buttons
[-] comments-pagination-previous.php
[edit]
[-] navigation-submenu.php
[edit]
[+]
file
[+]
details
[+]
query-pagination
[+]
post-excerpt
[-] latest-posts.php
[edit]
[-] term-description.php
[edit]
[-] loginout.php
[edit]
[+]
text-columns
[-] query-pagination.php
[edit]
[+]
loginout
[+]
search
[+]
post-content
[-] heading.php
[edit]
[+]
heading
[+]
post-date
[-] require-dynamic-blocks.php
[edit]
[+]
avatar
[+]
columns
[+]
column
[+]
home-link
[+]
categories
[+]
nextpage
[-] search.php
[edit]
[-] post-comments-form.php
[edit]
[+]
media-text
[-] blocks-json.php
[edit]
[+]
cover
[+]
social-link
[-] comment-date.php
[edit]
[+]
post-title
[+]
navigation-link
[-] comments-title.php
[edit]
[+]
shortcode
[+]
post-featured-image
[-] post-excerpt.php
[edit]
[-] post-author-name.php
[edit]
[+]
list-item
[+]
post-template
[+]
button
[+]
spacer
[-] categories.php
[edit]
[+]
comments-title
[-] site-logo.php
[edit]
[-] block.php
[edit]
[+]
..
[-] legacy-widget.php
[edit]
[+]
group
[-] site-title.php
[edit]
[+]
pullquote
[+]
page-list
[+]
post-comments-form
[-] query-no-results.php
[edit]
[+]
verse