: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
use NetworkPosts\Components\NetsPostsHtmlHelper;
if ( ! defined( 'POST_VIEWS_PATH' ) ) {
$html .= htmlspecialchars_decode( $shortcode_mgr->get( 'wrap_image_start' ) );
$size = $shortcode_mgr->get( 'size' );
if( $size === 'parent theme' ){
$size = 'post-thumbnail';
$image_class = $shortcode_mgr->get( 'image_class' );
if ( $the_post['post_type'] != 'estore' ) {
$thumbnail = netsposts_get_thumbnail(
$thumbnail = netsposts_create_estore_product_thumbnail( $the_post['thumbnail_url'], $the_post['post_title'], $size, $image_class );
$post_blog_details = get_blog_details();
$current_blog = get_blog_details();
switch_to_blog( $the_post['blog_id'] );
$thumbnail = str_replace( $current_blog->siteurl,
$post_blog_details->siteurl, $thumbnail );
} elseif( $shortcode_mgr->has_value( 'default_thumbnail' ) ){
$thumbnail = '<img alt="' . $the_post['post_title'] . '" src="' . $shortcode_mgr->get( 'default_thumbnail' ) . '" class="post-thumbnail wp-post-image" width="150">';
$html .= NetsPostsHtmlHelper::create_link(
$shortcode_mgr->get_boolean( 'img_link_open_new_window' ),
$html .= htmlspecialchars_decode( $shortcode_mgr->get( 'wrap_image_end' ) );