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.../plugins/ninja-fo.../includes/Fields
File: ListRadio.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Class NF_Fields_RadioList
[3] Fix | Delete
*/
[4] Fix | Delete
class NF_Fields_ListRadio extends NF_Abstracts_List
[5] Fix | Delete
{
[6] Fix | Delete
protected $_name = 'listradio';
[7] Fix | Delete
[8] Fix | Delete
protected $_type = 'listradio';
[9] Fix | Delete
[10] Fix | Delete
protected $_section = 'common';
[11] Fix | Delete
[12] Fix | Delete
protected $_icon = 'dot-circle-o';
[13] Fix | Delete
[14] Fix | Delete
protected $_templates = 'listradio';
[15] Fix | Delete
[16] Fix | Delete
protected $_old_classname = 'list-radio';
[17] Fix | Delete
[18] Fix | Delete
public function __construct()
[19] Fix | Delete
{
[20] Fix | Delete
parent::__construct();
[21] Fix | Delete
[22] Fix | Delete
$this->_nicename = esc_html__( 'Radio List', 'ninja-forms' );
[23] Fix | Delete
[24] Fix | Delete
add_filter( 'ninja_forms_merge_tag_calc_value_' . $this->_type, array( $this, 'get_calc_value' ), 10, 2 );
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
public function get_calc_value( $value, $field )
[28] Fix | Delete
{
[29] Fix | Delete
if( isset( $field[ 'options' ] ) ) {
[30] Fix | Delete
foreach ($field['options'] as $option ) {
[31] Fix | Delete
if( ! isset( $option[ 'value' ] ) || $value != $option[ 'value' ] || ! isset( $option[ 'calc' ] ) ) continue;
[32] Fix | Delete
$value = $option[ 'calc' ];
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
return $value;
[36] Fix | Delete
}
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function