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-.../includes/plugin-c...
File: enviragallery.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_EnviraGallery {
[8] Fix | Delete
[9] Fix | Delete
static function init() {
[10] Fix | Delete
add_filter( 'themify_builder_post_types_support', array( __CLASS__, 'themify_builder_post_types_support' ), 12, 1 );
[11] Fix | Delete
add_filter( 'themify_post_types',array( __CLASS__, 'themify_builder_post_types_support' ), 12, 1 );
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* Filter builder post types compatibility
[16] Fix | Delete
*
[17] Fix | Delete
* @access public
[18] Fix | Delete
* @param int $new_id
[19] Fix | Delete
*/
[20] Fix | Delete
public static function themify_builder_post_types_support(array $post_types):array{
[21] Fix | Delete
$post_types = array_keys(array_flip($post_types));
[22] Fix | Delete
$exclude = array_search('envira', $post_types,true);
[23] Fix | Delete
if($exclude!==false){
[24] Fix | Delete
unset($post_types[$exclude]);
[25] Fix | Delete
}
[26] Fix | Delete
$exclude = array_search('envira_album', $post_types,true);
[27] Fix | Delete
if($exclude!==false){
[28] Fix | Delete
unset($post_types[$exclude]);
[29] Fix | Delete
}
[30] Fix | Delete
return $post_types;
[31] Fix | Delete
}
[32] Fix | Delete
}
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function