/
var
/
www
/
p4ela.net
/
www
/
wp-includes
/
blocks
/
/var/www/p4ela.net/www/wp-includes/blocks
mkdir
upload
Name
Size
Mode
Actions
archives/
-
0777
rm
audio/
-
0777
rm
avatar/
-
0777
rm
block/
-
0777
rm
button/
-
0777
rm
buttons/
-
0777
rm
calendar/
-
0777
rm
categories/
-
0777
rm
code/
-
0777
rm
column/
-
0777
rm
columns/
-
0777
rm
comment-author-name/
-
0777
rm
comment-content/
-
0777
rm
comment-date/
-
0777
rm
comment-edit-link/
-
0777
rm
comment-reply-link/
-
0777
rm
comment-template/
-
0777
rm
comments/
-
0777
rm
comments-pagination/
-
0777
rm
comments-pagination-next/
-
0777
rm
comments-pagination-numbers/
-
0777
rm
comments-pagination-previous/
-
0777
rm
comments-title/
-
0777
rm
cover/
-
0777
rm
details/
-
0777
rm
embed/
-
0777
rm
file/
-
0777
rm
footnotes/
-
0777
rm
freeform/
-
0777
rm
gallery/
-
0777
rm
group/
-
0777
rm
heading/
-
0777
rm
home-link/
-
0777
rm
html/
-
0777
rm
image/
-
0777
rm
latest-comments/
-
0777
rm
latest-posts/
-
0777
rm
legacy-widget/
-
0777
rm
list/
-
0777
rm
list-item/
-
0777
rm
loginout/
-
0777
rm
media-text/
-
0777
rm
missing/
-
0777
rm
more/
-
0777
rm
navigation/
-
0777
rm
navigation-link/
-
0777
rm
navigation-submenu/
-
0777
rm
nextpage/
-
0777
rm
page-list/
-
0777
rm
page-list-item/
-
0777
rm
paragraph/
-
0777
rm
pattern/
-
0777
rm
post-author/
-
0777
rm
post-author-biography/
-
0777
rm
post-author-name/
-
0777
rm
post-comments-form/
-
0777
rm
post-content/
-
0777
rm
post-date/
-
0777
rm
post-excerpt/
-
0777
rm
post-featured-image/
-
0777
rm
post-navigation-link/
-
0777
rm
post-template/
-
0777
rm
post-terms/
-
0777
rm
post-title/
-
0777
rm
preformatted/
-
0777
rm
pullquote/
-
0777
rm
query/
-
0777
rm
query-no-results/
-
0777
rm
query-pagination/
-
0777
rm
query-pagination-next/
-
0777
rm
query-pagination-numbers/
-
0777
rm
query-pagination-previous/
-
0777
rm
query-title/
-
0777
rm
quote/
-
0777
rm
read-more/
-
0777
rm
rss/
-
0777
rm
search/
-
0777
rm
separator/
-
0777
rm
shortcode/
-
0777
rm
site-logo/
-
0777
rm
site-tagline/
-
0777
rm
site-title/
-
0777
rm
social-link/
-
0777
rm
social-links/
-
0777
rm
spacer/
-
0777
rm
table/
-
0777
rm
tag-cloud/
-
0777
rm
template-part/
-
0777
rm
term-description/
-
0777
rm
text-columns/
-
0777
rm
verse/
-
0777
rm
video/
-
0777
rm
widget-group/
-
0777
rm
archives.php
2994
0666
edit
dl
rm
avatar.php
5745
0666
edit
dl
rm
block.php
3202
0666
edit
dl
rm
blocks-json.php
187226
0666
edit
dl
rm
button.php
1805
0666
edit
dl
rm
calendar.php
6075
0666
edit
dl
rm
categories.php
4010
0666
edit
dl
rm
comment-author-name.php
2133
0666
edit
dl
rm
comment-content.php
2459
0666
edit
dl
rm
comment-date.php
1863
0666
edit
dl
rm
comment-edit-link.php
1713
0666
edit
dl
rm
comment-reply-link.php
2075
0666
edit
dl
rm
comment-template.php
4494
0666
edit
dl
rm
comments-pagination-next.php
1924
0666
edit
dl
rm
comments-pagination-numbers.php
1632
0666
edit
dl
rm
comments-pagination-previous.php
1790
0666
edit
dl
rm
comments-pagination.php
1199
0666
edit
dl
rm
comments-title.php
2772
0666
edit
dl
rm
comments.php
6767
0666
edit
dl
rm
cover.php
3109
0666
edit
dl
rm
file.php
1793
0666
edit
dl
rm
footnotes.php
3771
0666
edit
dl
rm
gallery.php
6438
0666
edit
dl
rm
heading.php
1301
0666
edit
dl
rm
home-link.php
5733
0666
edit
dl
rm
image.php
12099
0666
edit
dl
rm
index.php
5111
0666
edit
dl
rm
latest-comments.php
5040
0666
edit
dl
rm
latest-posts.php
8542
0666
edit
dl
rm
legacy-widget.php
3997
0666
edit
dl
rm
list.php
1273
0666
edit
dl
rm
loginout.php
1418
0666
edit
dl
rm
media-text.php
4383
0666
edit
dl
rm
navigation-link.php
13525
0666
edit
dl
rm
navigation-submenu.php
9305
0666
edit
dl
rm
navigation.php
59308
0666
edit
dl
rm
page-list-item.php
361
0666
edit
dl
rm
page-list.php
13611
0666
edit
dl
rm
pattern.php
2188
0666
edit
dl
rm
post-author-biography.php
1524
0666
edit
dl
rm
post-author-name.php
1822
0666
edit
dl
rm
post-author.php
2605
0666
edit
dl
rm
post-comments-form.php
2805
0666
edit
dl
rm
post-content.php
2156
0666
edit
dl
rm
post-date.php
3208
0666
edit
dl
rm
post-excerpt.php
3447
0666
edit
dl
rm
post-featured-image.php
9363
0666
edit
dl
rm
post-navigation-link.php
4837
0666
edit
dl
rm
post-template.php
5749
0666
edit
dl
rm
post-terms.php
3691
0666
edit
dl
rm
post-title.php
2138
0666
edit
dl
rm
query-no-results.php
1847
0666
edit
dl
rm
query-pagination-next.php
3787
0666
edit
dl
rm
query-pagination-numbers.php
4770
0666
edit
dl
rm
query-pagination-previous.php
3173
0666
edit
dl
rm
query-pagination.php
1176
0666
edit
dl
rm
query-title.php
2098
0666
edit
dl
rm
query.php
5691
0666
edit
dl
rm
read-more.php
1830
0666
edit
dl
rm
require-dynamic-blocks.php
4105
0666
edit
dl
rm
require-static-blocks.php
501
0666
edit
dl
rm
rss.php
3968
0666
edit
dl
rm
search.php
23050
0666
edit
dl
rm
shortcode.php
735
0666
edit
dl
rm
site-logo.php
6334
0666
edit
dl
rm
site-tagline.php
1203
0666
edit
dl
rm
site-title.php
1809
0666
edit
dl
rm
social-link.php
64171
0666
edit
dl
rm
tag-cloud.php
1590
0666
edit
dl
rm
template-part.php
10100
0666
edit
dl
rm
term-description.php
1336
0666
edit
dl
rm
widget-group.php
2438
0666
edit
dl
rm
Edit:
/var/www/p4ela.net/www/wp-includes/blocks/pattern.php
(2188B)
<?php /** * Server-side rendering of the `core/pattern` block. * * @package WordPress */ /** * Registers the `core/pattern` block on the server. * * @since 5.9.0 */ 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' );
Save
cmd:
run