Edit File by line
/home/barbar84/www/wp-conte.../plugins/ninja-fo.../includes/Abstract...
File: SubmissionMetabox.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
abstract class NF_Abstracts_SubmissionMetabox extends NF_Abstracts_Metabox
[2] Fix | Delete
{
[3] Fix | Delete
/**
[4] Fix | Delete
* @var array
[5] Fix | Delete
*/
[6] Fix | Delete
protected $_post_types = array( 'nf_sub' );
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* @var NF_Database_Models_Submission
[10] Fix | Delete
*/
[11] Fix | Delete
protected $sub;
[12] Fix | Delete
[13] Fix | Delete
public function __construct()
[14] Fix | Delete
{
[15] Fix | Delete
parent::__construct();
[16] Fix | Delete
[17] Fix | Delete
if( ! isset( $_GET[ 'post' ] ) ) return;
[18] Fix | Delete
[19] Fix | Delete
$this->_title = esc_html__( 'Submission Metabox', 'ninja-forms' );
[20] Fix | Delete
[21] Fix | Delete
$post_id = absint( $_GET[ 'post' ] );
[22] Fix | Delete
[23] Fix | Delete
$this->sub = Ninja_Forms()->form()->get_sub( $post_id );
[24] Fix | Delete
[25] Fix | Delete
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
[26] Fix | Delete
add_action( 'save_post', array( $this, '_save_post' ) );
[27] Fix | Delete
}
[28] Fix | Delete
}
[29] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function