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/clone/wp-conte.../themes/Divi/includes/builder/plugin-c...
File: landing-pages.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[2] Fix | Delete
exit; // Exit if accessed directly
[3] Fix | Delete
}
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Plugin compatibility for Wordpress Landing Pages
[7] Fix | Delete
*/
[8] Fix | Delete
class ET_Builder_Plugin_Compat_Landing_Pages extends ET_Builder_Plugin_Compat_Base {
[9] Fix | Delete
/**
[10] Fix | Delete
* Constructor
[11] Fix | Delete
*/
[12] Fix | Delete
public function __construct() {
[13] Fix | Delete
$this->plugin_id = 'landing-pages/landing-pages.php';
[14] Fix | Delete
$this->init_hooks();
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* Hook methods to WordPress
[19] Fix | Delete
*
[20] Fix | Delete
* @return void
[21] Fix | Delete
*/
[22] Fix | Delete
public function init_hooks() {
[23] Fix | Delete
add_action( 'et_fb_framework_loaded', array( $this, 'fix_the_content_hooks' ) );
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
function fix_the_content_hooks() {
[27] Fix | Delete
$post_id = et_core_page_resource_get_the_ID();
[28] Fix | Delete
$post_type = get_post_type( $post_id );
[29] Fix | Delete
[30] Fix | Delete
if ( 'landing-page' === $post_type ) {
[31] Fix | Delete
// Landing Page plugin adds `the_content` filter with 20 priority, so we have to fire our actions after that.
[32] Fix | Delete
add_filter( 'the_content', 'et_fb_app_boot', 30 );
[33] Fix | Delete
add_filter( 'the_content', 'et_builder_add_builder_content_wrapper', 31 );
[34] Fix | Delete
}
[35] Fix | Delete
}
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
new ET_Builder_Plugin_Compat_Landing_Pages();
[39] Fix | Delete
[40] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function