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/network-.../views/post
File: thumbnail.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Created by PhpStorm.
[2] Fix | Delete
* User: Admin
[3] Fix | Delete
* Date: 04.04.2017
[4] Fix | Delete
* Time: 8:13
[5] Fix | Delete
*/
[6] Fix | Delete
use NetworkPosts\Components\NetsPostsHtmlHelper;
[7] Fix | Delete
if ( ! defined( 'POST_VIEWS_PATH' ) ) {
[8] Fix | Delete
die();
[9] Fix | Delete
}
[10] Fix | Delete
$html .= htmlspecialchars_decode( $shortcode_mgr->get( 'wrap_image_start' ) );
[11] Fix | Delete
$size = $shortcode_mgr->get( 'size' );
[12] Fix | Delete
if( $size === 'parent theme' ){
[13] Fix | Delete
$size = 'post-thumbnail';
[14] Fix | Delete
}
[15] Fix | Delete
$image_class = $shortcode_mgr->get( 'image_class' );
[16] Fix | Delete
if ( $the_post['post_type'] != 'estore' ) {
[17] Fix | Delete
$thumbnail = netsposts_get_thumbnail(
[18] Fix | Delete
$the_post['ID'],
[19] Fix | Delete
$size,
[20] Fix | Delete
$image_class
[21] Fix | Delete
);
[22] Fix | Delete
} else {
[23] Fix | Delete
$thumbnail = netsposts_create_estore_product_thumbnail( $the_post['thumbnail_url'], $the_post['post_title'], $size, $image_class );
[24] Fix | Delete
}
[25] Fix | Delete
if( $thumbnail ){
[26] Fix | Delete
if( $modify_image_url ){
[27] Fix | Delete
$post_blog_details = get_blog_details();
[28] Fix | Delete
restore_current_blog();
[29] Fix | Delete
$current_blog = get_blog_details();
[30] Fix | Delete
switch_to_blog( $the_post['blog_id'] );
[31] Fix | Delete
$thumbnail = str_replace( $current_blog->siteurl,
[32] Fix | Delete
$post_blog_details->siteurl, $thumbnail );
[33] Fix | Delete
}
[34] Fix | Delete
} elseif( $shortcode_mgr->has_value( 'default_thumbnail' ) ){
[35] Fix | Delete
$thumbnail = '<img alt="' . $the_post['post_title'] . '" src="' . $shortcode_mgr->get( 'default_thumbnail' ) . '" class="post-thumbnail wp-post-image" width="150">';
[36] Fix | Delete
}
[37] Fix | Delete
$html .= NetsPostsHtmlHelper::create_link(
[38] Fix | Delete
$the_post['guid'],
[39] Fix | Delete
$thumbnail,
[40] Fix | Delete
$shortcode_mgr->get_boolean( 'img_link_open_new_window' ),
[41] Fix | Delete
'link-img-wrapper'
[42] Fix | Delete
);
[43] Fix | Delete
[44] Fix | Delete
$html .= htmlspecialchars_decode( $shortcode_mgr->get( 'wrap_image_end' ) );
[45] Fix | Delete
[46] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function