Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-inclu...
File: class-wp-block.php
[500] Fix | Delete
++$index;
[501] Fix | Delete
}
[502] Fix | Delete
}
[503] Fix | Delete
}
[504] Fix | Delete
[505] Fix | Delete
if ( ! empty( $computed_attributes ) && ! empty( $block_content ) ) {
[506] Fix | Delete
foreach ( $computed_attributes as $attribute_name => $source_value ) {
[507] Fix | Delete
$block_content = $this->replace_html( $block_content, $attribute_name, $source_value );
[508] Fix | Delete
}
[509] Fix | Delete
}
[510] Fix | Delete
[511] Fix | Delete
if ( $is_dynamic ) {
[512] Fix | Delete
$global_post = $post;
[513] Fix | Delete
$parent = WP_Block_Supports::$block_to_render;
[514] Fix | Delete
[515] Fix | Delete
WP_Block_Supports::$block_to_render = $this->parsed_block;
[516] Fix | Delete
[517] Fix | Delete
$block_content = (string) call_user_func( $this->block_type->render_callback, $this->attributes, $block_content, $this );
[518] Fix | Delete
[519] Fix | Delete
WP_Block_Supports::$block_to_render = $parent;
[520] Fix | Delete
[521] Fix | Delete
$post = $global_post;
[522] Fix | Delete
}
[523] Fix | Delete
[524] Fix | Delete
if ( ( ! empty( $this->block_type->script_handles ) ) ) {
[525] Fix | Delete
foreach ( $this->block_type->script_handles as $script_handle ) {
[526] Fix | Delete
wp_enqueue_script( $script_handle );
[527] Fix | Delete
}
[528] Fix | Delete
}
[529] Fix | Delete
[530] Fix | Delete
if ( ! empty( $this->block_type->view_script_handles ) ) {
[531] Fix | Delete
foreach ( $this->block_type->view_script_handles as $view_script_handle ) {
[532] Fix | Delete
wp_enqueue_script( $view_script_handle );
[533] Fix | Delete
}
[534] Fix | Delete
}
[535] Fix | Delete
[536] Fix | Delete
if ( ! empty( $this->block_type->view_script_module_ids ) ) {
[537] Fix | Delete
foreach ( $this->block_type->view_script_module_ids as $view_script_module_id ) {
[538] Fix | Delete
wp_enqueue_script_module( $view_script_module_id );
[539] Fix | Delete
}
[540] Fix | Delete
}
[541] Fix | Delete
[542] Fix | Delete
if ( ( ! empty( $this->block_type->style_handles ) ) ) {
[543] Fix | Delete
foreach ( $this->block_type->style_handles as $style_handle ) {
[544] Fix | Delete
wp_enqueue_style( $style_handle );
[545] Fix | Delete
}
[546] Fix | Delete
}
[547] Fix | Delete
[548] Fix | Delete
if ( ( ! empty( $this->block_type->view_style_handles ) ) ) {
[549] Fix | Delete
foreach ( $this->block_type->view_style_handles as $view_style_handle ) {
[550] Fix | Delete
wp_enqueue_style( $view_style_handle );
[551] Fix | Delete
}
[552] Fix | Delete
}
[553] Fix | Delete
[554] Fix | Delete
/**
[555] Fix | Delete
* Filters the content of a single block.
[556] Fix | Delete
*
[557] Fix | Delete
* @since 5.0.0
[558] Fix | Delete
* @since 5.9.0 The `$instance` parameter was added.
[559] Fix | Delete
*
[560] Fix | Delete
* @param string $block_content The block content.
[561] Fix | Delete
* @param array $block The full block, including name and attributes.
[562] Fix | Delete
* @param WP_Block $instance The block instance.
[563] Fix | Delete
*/
[564] Fix | Delete
$block_content = apply_filters( 'render_block', $block_content, $this->parsed_block, $this );
[565] Fix | Delete
[566] Fix | Delete
/**
[567] Fix | Delete
* Filters the content of a single block.
[568] Fix | Delete
*
[569] Fix | Delete
* The dynamic portion of the hook name, `$name`, refers to
[570] Fix | Delete
* the block name, e.g. "core/paragraph".
[571] Fix | Delete
*
[572] Fix | Delete
* @since 5.7.0
[573] Fix | Delete
* @since 5.9.0 The `$instance` parameter was added.
[574] Fix | Delete
*
[575] Fix | Delete
* @param string $block_content The block content.
[576] Fix | Delete
* @param array $block The full block, including name and attributes.
[577] Fix | Delete
* @param WP_Block $instance The block instance.
[578] Fix | Delete
*/
[579] Fix | Delete
$block_content = apply_filters( "render_block_{$this->name}", $block_content, $this->parsed_block, $this );
[580] Fix | Delete
[581] Fix | Delete
if ( $root_interactive_block === $this ) {
[582] Fix | Delete
// The root interactive block has finished rendering. Time to process directives.
[583] Fix | Delete
$block_content = wp_interactivity_process_directives( $block_content );
[584] Fix | Delete
$root_interactive_block = null;
[585] Fix | Delete
}
[586] Fix | Delete
[587] Fix | Delete
return $block_content;
[588] Fix | Delete
}
[589] Fix | Delete
}
[590] Fix | Delete
[591] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function