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.../plugins/themify-.../template...
File: template-related-posts.php
<?php
[0] Fix | Delete
if ( !defined( 'ABSPATH' ) )
[1] Fix | Delete
exit; // Exit if accessed directly
[2] Fix | Delete
/**
[3] Fix | Delete
* Template Related Posts
[4] Fix | Delete
*
[5] Fix | Delete
* Access original fields: $args['mod_settings']
[6] Fix | Delete
* @author Themify
[7] Fix | Delete
*/
[8] Fix | Delete
$fields_default = array(
[9] Fix | Delete
'heading' => '',
[10] Fix | Delete
'term_type' => 'category',
[11] Fix | Delete
'per_page' => 3,
[12] Fix | Delete
'term_id' => array()
[13] Fix | Delete
);
[14] Fix | Delete
$args['mod_settings'] = wp_parse_args($args['mod_settings'], $fields_default);
[15] Fix | Delete
$fields_default=null;
[16] Fix | Delete
$args['mod_settings']['pagination'] = 'no';
[17] Fix | Delete
$isActive=Themify_Builder::$frontedit_active===true;
[18] Fix | Delete
$post_id = true === $isActive && isset($_POST['pageId']) ? $_POST['pageId'] : get_the_ID();
[19] Fix | Delete
// Backward compatibility
[20] Fix | Delete
$args['mod_settings']['term_type'] = 'tag' === $args['mod_settings']['term_type'] ? 'post_tag' : $args['mod_settings']['term_type'];
[21] Fix | Delete
$terms = get_the_terms($post_id,$args['mod_settings']['term_type']);
[22] Fix | Delete
if(is_array($terms)){
[23] Fix | Delete
foreach ($terms as $term){
[24] Fix | Delete
$args['mod_settings']['term_id'][] = $term->term_id;
[25] Fix | Delete
}
[26] Fix | Delete
}
[27] Fix | Delete
if($isActive===true && isset($_POST['pageId'])){
[28] Fix | Delete
Tbp_Utils::get_actual_query();
[29] Fix | Delete
}
[30] Fix | Delete
$isLoop=Tbp_Utils::$isLoop===true;
[31] Fix | Delete
Tbp_Utils::$isActive=$isActive;
[32] Fix | Delete
Themify_Builder::$frontedit_active=false;
[33] Fix | Delete
Tbp_Utils::$isLoop=true;
[34] Fix | Delete
self::retrieve_template('template-archive-posts.php', $args);
[35] Fix | Delete
Themify_Builder::$frontedit_active=$isActive;
[36] Fix | Delete
Tbp_Utils::$isLoop=$isLoop;
[37] Fix | Delete
[38] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function