Edit File by line
/home/barbar84/www/wp-inclu.../blocks
File: shortcode.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Server-side rendering of the `core/shortcode` block.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Performs wpautop() on the shortcode block content.
[8] Fix | Delete
*
[9] Fix | Delete
* @param array $attributes The block attributes.
[10] Fix | Delete
* @param string $content The block content.
[11] Fix | Delete
*
[12] Fix | Delete
* @return string Returns the block content.
[13] Fix | Delete
*/
[14] Fix | Delete
function render_block_core_shortcode( $attributes, $content ) {
[15] Fix | Delete
return wpautop( $content );
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* Registers the `core/shortcode` block on server.
[20] Fix | Delete
*/
[21] Fix | Delete
function register_block_core_shortcode() {
[22] Fix | Delete
register_block_type_from_metadata(
[23] Fix | Delete
__DIR__ . '/shortcode',
[24] Fix | Delete
array(
[25] Fix | Delete
'render_callback' => 'render_block_core_shortcode',
[26] Fix | Delete
)
[27] Fix | Delete
);
[28] Fix | Delete
}
[29] Fix | Delete
add_action( 'init', 'register_block_core_shortcode' );
[30] Fix | Delete
[31] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function