A3rr0r Pro Manager
Path:
/www/wwwroot/www.smszp.cn/wp-includes/blocks/pattern
.
|
Edit
|
Rename
..
|
Edit
|
Rename
block.json
|
Edit
|
Rename
pattern.php
|
Edit
|
Rename
pattern_2912.php
|
Edit
|
Rename
pattern_3970.php
|
Edit
|
Rename
pattern_4140.php
|
Edit
|
Rename
pattern_4449.php
|
Edit
|
Rename
pattern_5645.php
|
Edit
|
Rename
pattern_5727.php
|
Edit
|
Rename
pattern_6836.php
|
Edit
|
Rename
pattern_6985.php
|
Edit
|
Rename
pattern_7081.php
|
Edit
|
Rename
pattern_7269.php
|
Edit
|
Rename
pattern_7494.php
|
Edit
|
Rename
pattern_9156.php
|
Edit
|
Rename
` or `
` and also has a * `
` wrapper. Find the a or button tag. */ $tag = null; while ( $p->next_tag() ) { $tag = $p->get_tag(); if ( 'A' === $tag || 'BUTTON' === $tag ) { break; } } /* * If this happens, the likelihood is there's no block content, * or the block has been modified by a plugin. */ if ( null === $tag ) { return $content; } // If the next token is the closing tag, the button is empty. $is_empty = true; while ( $p->next_token() && $tag !== $p->get_token_name() && $is_empty ) { if ( '#comment' !== $p->get_token_type() ) { /** * Anything else implies this is not empty. * This might include any text content (including a space), * inline images or other HTML. */ $is_empty = false; } } /* * When there's no text, render nothing for the block. * See https://github.com/WordPress/gutenberg/issues/17221 for the * reasoning behind this. */ if ( $is_empty ) { return ''; } return $content; } /** * Registers the `core/button` block on server. * * @since 6.6.0 */ function register_block_core_button() { register_block_type_from_metadata( __DIR__ . '/button', array( 'render_callback' => 'render_block_core_button', ) ); } add_action( 'init', 'register_block_core_button' );