PATH:
var
/
www
/
virtual
/
g70117
/
demo.baomarc.it
/
htdocs
/
wp-includes
/
blocks
<?php /** * Adds the wp-block-list class to the rendered list block. * * @package WordPress */ /** * Adds the wp-block-list class to the rendered list block. * Ensures that pre-existing list blocks use the class name on the front. * For example, <ol> is transformed to <ol class="wp-block-list">. * * @since 6.6.0 * * @see https://github.com/WordPress/gutenberg/issues/12420 * * @param array $attributes Attributes of the block being rendered. * @param string $content Content of the block being rendered. * * @return string The content of the block being rendered. */ function block_core_list_render( $attributes, $content ) { if ( ! $content ) { return $content; } $processor = new WP_HTML_Tag_Processor( $content ); $list_tags = array( 'OL', 'UL' ); while ( $processor->next_tag() ) { if ( in_array( $processor->get_tag(), $list_tags, true ) ) { $processor->add_class( 'wp-block-list' ); break; } } return $processor->get_updated_html(); } /** * Registers the `core/list` block on server. * * @since 6.6.0 */ function register_block_core_list() { register_block_type_from_metadata( __DIR__ . '/list', array( 'render_callback' => 'block_core_list_render', ) ); } add_action( 'init', 'register_block_core_list' );
[+]
..
[+]
cover
[+]
post-date
[+]
post-featured-image
[+]
details
[+]
math
[+]
post-author
[+]
term-name
[-] calendar.php
[edit]
[+]
comment-reply-link
[+]
post-template
[+]
comments-pagination-next
[+]
list
[+]
navigation-overlay-close
[+]
gallery
[-] page-list.php
[edit]
[+]
media-text
[+]
page-list-item
[+]
page-list
[+]
group
[+]
pattern
[+]
nextpage
[-] list.php
[edit]
[+]
accordion
[-] accordion-item.php
[edit]
[+]
calendar
[+]
post-title
[+]
categories
[+]
comments-pagination-numbers
[+]
pullquote
[+]
search
[+]
comment-content
[+]
comments-title
[+]
query-title
[+]
code
[+]
comment-author-name
[+]
site-tagline
[+]
more
[+]
embed
[+]
latest-posts
[+]
button
[+]
query-pagination
[+]
file
[+]
comments
[+]
post-navigation-link
[+]
html
[+]
query-pagination-previous
[+]
site-logo
[+]
read-more
[-] categories.php
[edit]
[+]
footnotes
[+]
navigation-submenu
[+]
home-link
[+]
term-description
[+]
icon
[+]
video
[+]
avatar
[-] page-list-item.php
[edit]
[+]
quote
[+]
block
[+]
post-author-biography
[+]
term-count
[+]
post-comments-count
[+]
navigation-link
[-] post-time-to-read.php
[edit]
[+]
list-item
[+]
social-links
[+]
table
[+]
template-part
[+]
missing
[+]
query-total
[+]
comments-pagination-previous
[+]
heading
[+]
rss
[+]
image
[+]
query-pagination-next
[-] button.php
[edit]
[+]
tag-cloud
[+]
archives
[+]
post-author-name
[-] tag-cloud.php
[edit]
[+]
query-no-results
[+]
shortcode
[+]
paragraph
[+]
post-excerpt
[+]
post-comments-form
[+]
comment-edit-link
[+]
query
[+]
latest-comments
[+]
terms-query
[+]
preformatted
[+]
loginout
[+]
post-time-to-read
[+]
freeform
[+]
post-content
[+]
accordion-heading
[+]
post-comments-link
[+]
query-pagination-numbers
[+]
text-columns
[+]
verse
[+]
column
[+]
term-template
[+]
buttons
[+]
accordion-panel
[+]
social-link
[-] media-text.php
[edit]
[+]
navigation
[+]
spacer
[+]
audio
[+]
comment-date
[+]
columns
[+]
post-terms
[-] search.php
[edit]
[+]
comment-template
[+]
legacy-widget
[+]
site-title
[+]
separator
[+]
comments-pagination
[+]
accordion-item
[+]
breadcrumbs
[-] site-tagline.php
[edit]