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.../public_h.../wp-conte.../plugins/themify-.../modules
File: module-copyright.php
<?php
[0] Fix | Delete
defined('ABSPATH') || exit;
[1] Fix | Delete
[2] Fix | Delete
/**
[3] Fix | Delete
* Module Name: Copyright
[4] Fix | Delete
* Description: Display copyright text
[5] Fix | Delete
*/
[6] Fix | Delete
class TB_Copyright_Module extends Themify_Builder_Component_Module {
[7] Fix | Delete
[8] Fix | Delete
[9] Fix | Delete
public static function get_module_name():string {
[10] Fix | Delete
add_filter('themify_builder_active_vars',array(__CLASS__,'set_active_vars'));
[11] Fix | Delete
return __('Copyright', 'themify');
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
public static function get_module_icon():string {
[15] Fix | Delete
return '-1';
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
[19] Fix | Delete
public static function set_active_vars(array $arr){
[20] Fix | Delete
if(!is_admin()){
[21] Fix | Delete
$arr['modules']['copyright']['site_data']=array(
[22] Fix | Delete
'site_name'=>get_bloginfo('name'),
[23] Fix | Delete
'site_description'=>get_bloginfo('description'),
[24] Fix | Delete
'site_url'=>home_url(),
[25] Fix | Delete
'year'=>wp_date('Y')
[26] Fix | Delete
);
[27] Fix | Delete
}
[28] Fix | Delete
return $arr;
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
public static function get_translatable_text_fields( $module ) : array {
[32] Fix | Delete
return [ 'title' ];
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
public static function get_translatable_textarea_fields( $module ) : array {
[36] Fix | Delete
return [ 'text' ];
[37] Fix | Delete
}
[38] Fix | Delete
}
[39] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function