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: commerce.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Created by PhpStorm.
[3] Fix | Delete
* User: Admin
[4] Fix | Delete
* Date: 04.04.2017
[5] Fix | Delete
* Time: 8:13
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
if ( ! defined( 'POST_VIEWS_PATH' ) ) {
[9] Fix | Delete
die();
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
[13] Fix | Delete
$wrap_price_start = $shortcode_mgr->get( 'wrap_price_start' );
[14] Fix | Delete
$wrap_price_end = $shortcode_mgr->get( 'wrap_price_end' );
[15] Fix | Delete
[16] Fix | Delete
if ( $the_post['post_type'] == 'product' && $price_woocommerce == true ) {
[17] Fix | Delete
[18] Fix | Delete
if( ! function_exists( 'wc_get_product' ) ){
[19] Fix | Delete
include_once ABSPATH . 'wp-content/plugins/woocommerce/woocommerce.php';
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
$_current_product = new WC_Product( $the_post['ID'] );
[23] Fix | Delete
[24] Fix | Delete
if ( $_current_product ) {
[25] Fix | Delete
[26] Fix | Delete
$html .= htmlspecialchars_decode( $wrap_price_start );
[27] Fix | Delete
[28] Fix | Delete
$price = $_current_product->get_regular_price();
[29] Fix | Delete
[30] Fix | Delete
if( is_numeric( $price ) ) {
[31] Fix | Delete
[32] Fix | Delete
$html .= '<p class="netsposts-price">' . wc_price( floatval( $price ) ) . '</p>';
[33] Fix | Delete
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
$html .= htmlspecialchars_decode( $wrap_price_end );
[37] Fix | Delete
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
} else if ( $the_post['post_type'] == 'estore' && $price_estore == true && $estore_installed ) {
[41] Fix | Delete
[42] Fix | Delete
$html .= htmlspecialchars_decode( $wrap_price_start );
[43] Fix | Delete
[44] Fix | Delete
$html .= '<p class="netsposts-price">' . wc_price( $the_post['price'] ) . '</p>';
[45] Fix | Delete
[46] Fix | Delete
$html .= htmlspecialchars_decode( $wrap_price_end );
[47] Fix | Delete
[48] Fix | Delete
}
[49] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function