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-.../themify
File: class-tf-term-image.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Term Cover Image
[2] Fix | Delete
*/
[3] Fix | Delete
[4] Fix | Delete
final class Themify_Term_Images {
[5] Fix | Delete
[6] Fix | Delete
public static function run() {
[7] Fix | Delete
add_action( 'admin_init', array( __CLASS__, 'admin_init' ), 100 );
[8] Fix | Delete
}
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Add options to all taxonomy terms that have archives
[12] Fix | Delete
*/
[13] Fix | Delete
public static function admin_init() {
[14] Fix | Delete
$taxonomies = get_taxonomies( array( 'public' => true ) );
[15] Fix | Delete
foreach ( $taxonomies as $tax ) {
[16] Fix | Delete
add_filter( "themify_metabox/taxonomy/{$tax}/fields", array( __CLASS__, 'fields' ) );
[17] Fix | Delete
}
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
public static function fields( $fields ) {
[21] Fix | Delete
$options = array(
[22] Fix | Delete
array(
[23] Fix | Delete
'name' => 'tbp_cover',
[24] Fix | Delete
'title' => __( 'Themify Cover Image', 'themify' ),
[25] Fix | Delete
'description' => __( 'This image can be used in various Themify templates, like in Builder Pro archive templates.', 'themify' ),
[26] Fix | Delete
'type' => 'image',
[27] Fix | Delete
'meta' => array()
[28] Fix | Delete
),
[29] Fix | Delete
);
[30] Fix | Delete
[31] Fix | Delete
return array_merge( $fields, $options );
[32] Fix | Delete
}
[33] Fix | Delete
}
[34] Fix | Delete
Themify_Term_Images::run();
[35] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function