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
/home/sportsfe.../httpdocs/wp-conte.../plugins/embedpre.../EmbedPre.../ThirdPar...
File: BeaverBuilder.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace EmbedPress\ThirdParty;
[2] Fix | Delete
[3] Fix | Delete
(defined('ABSPATH') && defined('EMBEDPRESS_IS_LOADED')) or die("No direct script access allowed.");
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Entity responsible for adding support for the Beaver Builder.
[7] Fix | Delete
*
[8] Fix | Delete
* @package EmbedPress
[9] Fix | Delete
* @author EmbedPress <help@embedpress.com>
[10] Fix | Delete
* @copyright Copyright (C) 2023 WPDeveloper. All rights reserved.
[11] Fix | Delete
* @license GPLv3 or later
[12] Fix | Delete
* @since 1.0.0
[13] Fix | Delete
*/
[14] Fix | Delete
class BeaverBuilder
[15] Fix | Delete
{
[16] Fix | Delete
/**
[17] Fix | Delete
* Method that replaces the embed shortcodes, before Beaver calls WP's native embed shortcode.
[18] Fix | Delete
* It forces that when it runs $wp_embed->run_shortcode.
[19] Fix | Delete
*
[20] Fix | Delete
* @param string $content
[21] Fix | Delete
*
[22] Fix | Delete
* @return string
[23] Fix | Delete
*/
[24] Fix | Delete
public static function before_render_shortcodes($content)
[25] Fix | Delete
{
[26] Fix | Delete
global $shortcode_tags;
[27] Fix | Delete
[28] Fix | Delete
// Back up current registered shortcodes and clear them all out
[29] Fix | Delete
$orig_shortcode_tags = $shortcode_tags;
[30] Fix | Delete
remove_all_shortcodes();
[31] Fix | Delete
[32] Fix | Delete
add_shortcode(EMBEDPRESS_SHORTCODE, ['\\EmbedPress\\Shortcode', 'do_shortcode']);
[33] Fix | Delete
[34] Fix | Delete
// Do the shortcode (only the [embed] one is registered)
[35] Fix | Delete
$content = do_shortcode($content, true);
[36] Fix | Delete
[37] Fix | Delete
// Put the original shortcodes back
[38] Fix | Delete
$shortcode_tags = $orig_shortcode_tags;
[39] Fix | Delete
[40] Fix | Delete
return $content;
[41] Fix | Delete
}
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function