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: Note.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Class NF_Fields_Note
[3] Fix | Delete
*/
[4] Fix | Delete
class NF_Fields_Note extends NF_Fields_Hidden
[5] Fix | Delete
{
[6] Fix | Delete
protected $_name = 'note';
[7] Fix | Delete
[8] Fix | Delete
protected $_type = 'note';
[9] Fix | Delete
[10] Fix | Delete
protected $_nicename = 'Note';
[11] Fix | Delete
[12] Fix | Delete
protected $_section = '';
[13] Fix | Delete
[14] Fix | Delete
protected $_icon = 'sticky-note-o';
[15] Fix | Delete
[16] Fix | Delete
protected $_templates = 'null';
[17] Fix | Delete
[18] Fix | Delete
protected $_aliases = array( 'notes', 'info' );
[19] Fix | Delete
[20] Fix | Delete
protected $_settings_only = array(
[21] Fix | Delete
'label', 'default'
[22] Fix | Delete
);
[23] Fix | Delete
[24] Fix | Delete
public function __construct()
[25] Fix | Delete
{
[26] Fix | Delete
parent::__construct();
[27] Fix | Delete
[28] Fix | Delete
$this->_settings[ 'value_mirror' ] = array(
[29] Fix | Delete
'name' => 'value_mirror',
[30] Fix | Delete
'type' => 'html',
[31] Fix | Delete
'label' => esc_html__( 'HTML', 'ninja-forms'),
[32] Fix | Delete
'width' => 'full',
[33] Fix | Delete
'group' => 'primary',
[34] Fix | Delete
'mirror' => 'default',
[35] Fix | Delete
);
[36] Fix | Delete
[37] Fix | Delete
$this->_settings[ 'label' ][ 'width' ] = 'full';
[38] Fix | Delete
$this->_settings[ 'label' ][ 'group' ] = 'advanced';
[39] Fix | Delete
[40] Fix | Delete
$this->_settings[ 'default' ][ 'type' ] = 'rte';
[41] Fix | Delete
$this->_settings[ 'default' ][ 'group' ] = 'advanced';
[42] Fix | Delete
[43] Fix | Delete
$this->_settings[ 'value_mirror' ][ 'value' ] = $this->_settings[ 'default' ][ 'value' ] = esc_html__( 'Note text can be edited in the note field\'s advanced settings below.' );
[44] Fix | Delete
[45] Fix | Delete
$this->_nicename = esc_html__( 'Note', 'ninja-forms' );
[46] Fix | Delete
[47] Fix | Delete
add_filter( 'nf_sub_hidden_field_types', array( $this, 'hide_field_type' ) );
[48] Fix | Delete
}
[49] Fix | Delete
[50] Fix | Delete
function hide_field_type( $field_types )
[51] Fix | Delete
{
[52] Fix | Delete
$field_types[] = $this->_name;
[53] Fix | Delete
return $field_types;
[54] Fix | Delete
}
[55] Fix | Delete
}
[56] Fix | Delete
[57] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function