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.../themes/Divi/includes/builder/plugin-c...
File: divi-testimonial-slider.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[2] Fix | Delete
exit; // Exit if accessed directly
[3] Fix | Delete
}
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Plugin compatibility for Divi Testimonial Slider.
[7] Fix | Delete
*
[8] Fix | Delete
* @since 4.0.10
[9] Fix | Delete
*/
[10] Fix | Delete
class ET_Builder_Plugin_Compat_DiviTestimonialSlider extends ET_Builder_Plugin_Compat_Base {
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* Constructor.
[14] Fix | Delete
*
[15] Fix | Delete
* @since 4.0.10
[16] Fix | Delete
*/
[17] Fix | Delete
public function __construct() {
[18] Fix | Delete
$this->plugin_id = 'divi-testimonial-slider/divi-testimonial-slider.php';
[19] Fix | Delete
$this->init_hooks();
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
/**
[23] Fix | Delete
* Hook methods to WordPress.
[24] Fix | Delete
*
[25] Fix | Delete
* @since 4.0.10
[26] Fix | Delete
*
[27] Fix | Delete
* @return void
[28] Fix | Delete
*/
[29] Fix | Delete
public function init_hooks() {
[30] Fix | Delete
// Bail if there's no version found
[31] Fix | Delete
if ( ! $this->get_plugin_version() ) {
[32] Fix | Delete
return;
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
$hook = array( $this, 'remove_random_default' );
[36] Fix | Delete
$slugs = array(
[37] Fix | Delete
'et_pb_b3_testimonial_archive',
[38] Fix | Delete
'et_pb_b3_testimonial_grid_slider',
[39] Fix | Delete
'et_pb_testimonial_slider',
[40] Fix | Delete
);
[41] Fix | Delete
[42] Fix | Delete
foreach ( $slugs as $slug ) {
[43] Fix | Delete
add_filter( "et_pb_all_fields_unprocessed_{$slug}", $hook );
[44] Fix | Delete
}
[45] Fix | Delete
}
[46] Fix | Delete
[47] Fix | Delete
/**
[48] Fix | Delete
* Replace the random default with a fixed value.
[49] Fix | Delete
*
[50] Fix | Delete
* @since 4.0.10
[51] Fix | Delete
*
[52] Fix | Delete
* @param array $advanced_fields
[53] Fix | Delete
*
[54] Fix | Delete
* @return array
[55] Fix | Delete
*/
[56] Fix | Delete
public function remove_random_default( $fields_unprocessed ) {
[57] Fix | Delete
et_()->array_set( $fields_unprocessed, 'hidden_field.default', 50 );
[58] Fix | Delete
return $fields_unprocessed;
[59] Fix | Delete
}
[60] Fix | Delete
[61] Fix | Delete
}
[62] Fix | Delete
[63] Fix | Delete
new ET_Builder_Plugin_Compat_DiviTestimonialSlider();
[64] Fix | Delete
[65] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function