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/themify-.../includes/plugin-c...
File: duplicateposts.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Builder Plugin Compatibility Code
[2] Fix | Delete
*
[3] Fix | Delete
* @package Themify_Builder
[4] Fix | Delete
* @subpackage Themify_Builder/classes
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
class Themify_Builder_Plugin_Compat_DuplicatePosts {
[8] Fix | Delete
[9] Fix | Delete
static function init() {
[10] Fix | Delete
add_filter( 'option_duplicate_post_blacklist', array( __CLASS__, 'dp_meta_backlist'), 10, 2 );
[11] Fix | Delete
add_action('dp_duplicate_post', array( __CLASS__, 'dp_duplicate_builder_data'), 10, 2);
[12] Fix | Delete
add_action('dp_duplicate_page', array( __CLASS__, 'dp_duplicate_builder_data'), 10, 2);
[13] Fix | Delete
}
[14] Fix | Delete
[15] Fix | Delete
/**
[16] Fix | Delete
* Backlist builder meta_key from duplicate post settings custom fields
[17] Fix | Delete
*/
[18] Fix | Delete
public static function dp_meta_backlist(string $value,string $option ):string {
[19] Fix | Delete
$list_arr = explode(',', $value );
[20] Fix | Delete
$list_arr[] = '_themify_builder_settings_json';
[21] Fix | Delete
return implode( ',', $list_arr );
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
/**
[25] Fix | Delete
* Action to duplicate builder data.
[26] Fix | Delete
*
[27] Fix | Delete
* @access public
[28] Fix | Delete
* @param int $new_id
[29] Fix | Delete
* @param object $post
[30] Fix | Delete
*/
[31] Fix | Delete
public static function dp_duplicate_builder_data( $new_id, $post ) {
[32] Fix | Delete
$builder_data = ThemifyBuilder_Data_Manager::get_data( $post->ID ); // get builder data from original post
[33] Fix | Delete
ThemifyBuilder_Data_Manager::save_data( $builder_data, $new_id ); // save the data for the new post
[34] Fix | Delete
}
[35] Fix | Delete
}
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function