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/popup-ma.../includes
File: class-pum-form.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Forms
[2] Fix | Delete
*
[3] Fix | Delete
* @package PUM
[4] Fix | Delete
* @copyright Copyright (c) 2023, Code Atlantic LLC
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
// Exit if accessed directly
[8] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[9] Fix | Delete
exit;
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
class PUM_Form extends PUM_Fields {
[13] Fix | Delete
[14] Fix | Delete
public $id;
[15] Fix | Delete
[16] Fix | Delete
public $field_prefix = 'pum_form';
[17] Fix | Delete
[18] Fix | Delete
public $field_name_format = '{$prefix}[{$field}]';
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* Sets the $id of the Cookie and returns the parent __construct()
[22] Fix | Delete
*
[23] Fix | Delete
* @param array $id
[24] Fix | Delete
* @param array $args
[25] Fix | Delete
*/
[26] Fix | Delete
public function __construct( $id, $args = [] ) {
[27] Fix | Delete
$this->id = $id;
[28] Fix | Delete
[29] Fix | Delete
if ( empty( $args['id'] ) ) {
[30] Fix | Delete
$args['id'] = $id;
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
if ( isset( $args['field_prefix'] ) ) {
[34] Fix | Delete
$this->field_prefix = $args['field_prefix'];
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
if ( isset( $args['field_name_format'] ) ) {
[38] Fix | Delete
$this->field_name_format = $args['field_name_format'];
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
return parent::__construct( $args );
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
public function get_id() {
[45] Fix | Delete
return $this->id;
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
}
[49] Fix | Delete
[50] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function