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/widgets
File: widget-about.php
<?php class AboutMeWidget extends WP_Widget
[0] Fix | Delete
{
[1] Fix | Delete
function __construct(){
[2] Fix | Delete
$widget_ops = array( 'description' => esc_html__( 'Displays About Me Information', 'Divi' ) );
[3] Fix | Delete
$control_ops = array( 'width' => 400, 'height' => 300 );
[4] Fix | Delete
parent::__construct( false, $name = esc_html__( 'ET About Me Widget', 'Divi' ), $widget_ops, $control_ops );
[5] Fix | Delete
}
[6] Fix | Delete
[7] Fix | Delete
/* Displays the Widget in the front-end */
[8] Fix | Delete
function widget( $args, $instance ){
[9] Fix | Delete
extract($args);
[10] Fix | Delete
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? esc_html__( 'About Me', 'Divi' ) : esc_html( $instance['title'] ) );
[11] Fix | Delete
$imagePath = empty( $instance['imagePath'] ) ? '' : esc_url( $instance['imagePath'] );
[12] Fix | Delete
$aboutText = empty( $instance['aboutText'] ) ? '' : $instance['aboutText'];
[13] Fix | Delete
[14] Fix | Delete
echo et_core_intentionally_unescaped( $before_widget, 'html' );
[15] Fix | Delete
[16] Fix | Delete
if ( $title )
[17] Fix | Delete
echo et_core_intentionally_unescaped( $before_title . $title . $after_title, 'html' ); ?>
[18] Fix | Delete
<div class="clearfix">
[19] Fix | Delete
<img src="<?php echo et_core_esc_previously( et_new_thumb_resize( et_multisite_thumbnail( $imagePath ), 74, 74, '', true ) ); ?>" id="about-image" alt="" />
[20] Fix | Delete
<?php echo wp_kses_post( $aboutText )?>
[21] Fix | Delete
</div> <!-- end about me section -->
[22] Fix | Delete
<?php
[23] Fix | Delete
echo et_core_intentionally_unescaped( $after_widget, 'html' );
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
/*Saves the settings. */
[27] Fix | Delete
function update( $new_instance, $old_instance ){
[28] Fix | Delete
$instance = $old_instance;
[29] Fix | Delete
$instance['title'] = sanitize_text_field( $new_instance['title'] );
[30] Fix | Delete
$instance['imagePath'] = esc_url( $new_instance['imagePath'] );
[31] Fix | Delete
$instance['aboutText'] = current_user_can('unfiltered_html') ? $new_instance['aboutText'] : stripslashes( wp_filter_post_kses( addslashes($new_instance['aboutText']) ) );
[32] Fix | Delete
[33] Fix | Delete
return $instance;
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
/*Creates the form for the widget in the back-end. */
[37] Fix | Delete
function form( $instance ){
[38] Fix | Delete
//Defaults
[39] Fix | Delete
$instance = wp_parse_args( (array) $instance, array( 'title' => esc_html__( 'About Me', 'Divi' ), 'imagePath' => '', 'aboutText' => '' ) );
[40] Fix | Delete
[41] Fix | Delete
# Title
[42] Fix | Delete
echo '<p><label for="' . esc_attr( $this->get_field_id('title') ) . '">' . esc_html__( 'Title', 'Divi' ) . ':' . '</label><input class="widefat" id="' . esc_attr( $this->get_field_id('title') ) . '" name="' . esc_attr( $this->get_field_name('title') ) . '" type="text" value="' . esc_attr( $instance['title'] ) . '" /></p>';
[43] Fix | Delete
# Image
[44] Fix | Delete
echo '<p><label for="' . esc_attr( $this->get_field_id('imagePath') ) . '">' . esc_html__( 'Image', 'Divi' ) . ':' . '</label><textarea cols="20" rows="2" class="widefat" id="' . esc_attr( $this->get_field_id('imagePath') ) . '" name="' . esc_attr( $this->get_field_name('imagePath') ) . '" >' . esc_url( $instance['imagePath'] ) .'</textarea></p>';
[45] Fix | Delete
# About Text
[46] Fix | Delete
echo '<p><label for="' . esc_attr( $this->get_field_id('aboutText') ) . '">' . esc_html__( 'Text', 'Divi' ) . ':' . '</label><textarea cols="20" rows="5" class="widefat" id="' . esc_attr( $this->get_field_id('aboutText') ) . '" name="' . esc_attr( $this->get_field_name('aboutText') ) . '" >' . esc_textarea( $instance['aboutText'] ) .'</textarea></p>';
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
}// end AboutMeWidget class
[50] Fix | Delete
[51] Fix | Delete
function AboutMeWidgetInit() {
[52] Fix | Delete
register_widget('AboutMeWidget');
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
add_action('widgets_init', 'AboutMeWidgetInit');
[56] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function