PATH:
home
/
lab2454c
/
securepaychip.com
/
wp-includes
/
blocks
<?php /** * Server-side rendering of the `core/pattern` block. * * @package WordPress */ /** * Registers the `core/pattern` block on the server. */ function register_block_core_pattern() { register_block_type_from_metadata( __DIR__ . '/pattern', array( 'render_callback' => 'render_block_core_pattern', ) ); } /** * Renders the `core/pattern` block on the server. * * @since 6.3.0 Backwards compatibility: blocks with no `syncStatus` attribute do not receive block wrapper. * * @global WP_Embed $wp_embed Used to process embedded content within patterns * * @param array $attributes Block attributes. * * @return string Returns the output of the pattern. */ function render_block_core_pattern( $attributes ) { static $seen_refs = array(); if ( empty( $attributes['slug'] ) ) { return ''; } $slug = $attributes['slug']; $registry = WP_Block_Patterns_Registry::get_instance(); if ( ! $registry->is_registered( $slug ) ) { return ''; } if ( isset( $seen_refs[ $attributes['slug'] ] ) ) { // 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. %s represents a pattern's slug. sprintf( __( '[block rendering halted for pattern "%s"]' ), $slug ) : ''; } $pattern = $registry->get_registered( $slug ); $content = $pattern['content']; // Backward compatibility for handling Block Hooks and injecting the theme attribute in the Gutenberg plugin. // This can be removed when the minimum supported WordPress is >= 6.4. if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN && ! function_exists( 'traverse_and_serialize_blocks' ) ) { $blocks = parse_blocks( $content ); $content = gutenberg_serialize_blocks( $blocks ); } $seen_refs[ $attributes['slug'] ] = true; $content = do_blocks( $content ); global $wp_embed; $content = $wp_embed->autoembed( $content ); unset( $seen_refs[ $attributes['slug'] ] ); return $content; } add_action( 'init', 'register_block_core_pattern' );
[-] avatar.php
[edit]
[+]
post-content
[+]
search
[+]
image
[+]
column
[-] comment-date.php
[edit]
[+]
latest-comments
[-] post-navigation-link.php
[edit]
[+]
term-description
[+]
quote
[+]
audio
[+]
comment-template
[+]
social-links
[-] site-title.php
[edit]
[-] search.php
[edit]
[+]
comment-edit-link
[+]
comment-date
[+]
shortcode
[-] block.php
[edit]
[-] term-description.php
[edit]
[-] index.php
[edit]
[+]
navigation-submenu
[-] blocks-json.php
[edit]
[+]
widget-group
[+]
..
[+]
comments-pagination-next
[-] pattern.php
[edit]
[-] post-title.php
[edit]
[+]
heading
[-] post-excerpt.php
[edit]
[-] widget-group.php
[edit]
[+]
query-title
[+]
button
[+]
separator
[+]
spacer
[-] query-pagination-next.php
[edit]
[-] post-featured-image.php
[edit]
[+]
embed
[+]
query-pagination-next
[+]
text-columns
[+]
tag-cloud
[+]
more
[+]
comment-reply-link
[+]
site-title
[+]
site-tagline
[-] query-pagination-previous.php
[edit]
[-] tag-cloud.php
[edit]
[-] social-link.php
[edit]
[+]
cover
[-] rss.php
[edit]
[-] template-part.php
[edit]
[-] categories.php
[edit]
[+]
nextpage
[-] comment-template.php
[edit]
[-] post-date.php
[edit]
[-] cover.php
[edit]
[+]
comment-author-name
[+]
code
[+]
columns
[-] comments-pagination-next.php
[edit]
[+]
footnotes
[+]
categories
[-] comment-content.php
[edit]
[+]
loginout
[-] calendar.php
[edit]
[+]
media-text
[+]
preformatted
[-] post-comments-form.php
[edit]
[+]
legacy-widget
[-] latest-comments.php
[edit]
[-] navigation.php
[edit]
[+]
rss
[+]
archives
[+]
group
[-] navigation-link.php
[edit]
[+]
navigation-link
[+]
template-part
[+]
post-navigation-link
[-] site-logo.php
[edit]
[-] post-author-name.php
[edit]
[-] shortcode.php
[edit]
[-] comments-pagination-numbers.php
[edit]
[+]
post-title
[-] file.php
[edit]
[-] query.php
[edit]
[+]
post-excerpt
[+]
post-comments-form
[+]
block
[+]
post-template
[+]
comment-content
[+]
query
[+]
pattern
[+]
avatar
[+]
post-author-name
[+]
latest-posts
[+]
query-no-results
[+]
comments-pagination-numbers
[-] query-pagination-numbers.php
[edit]
[-] page-list-item.php
[edit]
[-] read-more.php
[edit]
[-] post-terms.php
[edit]
[+]
table
[-] footnotes.php
[edit]
[-] page-list.php
[edit]
[+]
comments-pagination-previous
[-] site-tagline.php
[edit]
[-] query-no-results.php
[edit]
[+]
details
[-] comments-pagination-previous.php
[edit]
[+]
read-more
[+]
video
[+]
paragraph
[-] latest-posts.php
[edit]
[+]
page-list-item
[-] comments-title.php
[edit]
[-] require-static-blocks.php
[edit]
[-] post-author-biography.php
[edit]
[-] require-dynamic-blocks.php
[edit]
[+]
query-pagination-previous
[+]
post-date
[+]
verse
[+]
file
[+]
post-author-biography
[+]
social-link
[+]
query-pagination
[-] post-content.php
[edit]
[+]
home-link
[+]
buttons
[-] post-template.php
[edit]
[-] archives.php
[edit]
[+]
calendar
[-] post-author.php
[edit]
[+]
list
[+]
page-list
[+]
missing
[-] comments-pagination.php
[edit]
[+]
pullquote
[+]
post-featured-image
[+]
comments-title
[-] query-title.php
[edit]
[+]
post-author
[+]
list-item
[-] error_log
[edit]
[+]
comments-pagination
[-] query-pagination.php
[edit]
[+]
site-logo
[+]
navigation
[-] loginout.php
[edit]
[-] navigation-submenu.php
[edit]
[-] legacy-widget.php
[edit]
[-] comment-edit-link.php
[edit]
[+]
comments
[-] comments.php
[edit]
[-] comment-author-name.php
[edit]
[-] home-link.php
[edit]
[+]
post-terms
[+]
query-pagination-numbers
[-] comment-reply-link.php
[edit]
[+]
freeform
[-] heading.php
[edit]
[+]
gallery
[-] image.php
[edit]
[-] gallery.php
[edit]
[+]
html