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/Admin/Menus
File: AddNew.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
final class NF_Admin_Menus_AddNew extends NF_Abstracts_Submenu
[2] Fix | Delete
{
[3] Fix | Delete
public $parent_slug = 'ninja-forms';
[4] Fix | Delete
[5] Fix | Delete
public $page_title = 'Add New';
[6] Fix | Delete
[7] Fix | Delete
public $menu_slug = 'ninja-forms#new-form';
[8] Fix | Delete
[9] Fix | Delete
public $position = 2;
[10] Fix | Delete
[11] Fix | Delete
public function __construct()
[12] Fix | Delete
{
[13] Fix | Delete
parent::__construct();
[14] Fix | Delete
[15] Fix | Delete
add_action( 'admin_init', array( $this, 'nf_upgrade_redirect' ) );
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* If we have required updates, unregister the menu item
[20] Fix | Delete
*/
[21] Fix | Delete
public function nf_upgrade_redirect() {
[22] Fix | Delete
global $pagenow;
[23] Fix | Delete
[24] Fix | Delete
if( "1" == get_option( 'ninja_forms_needs_updates' ) ) {
[25] Fix | Delete
remove_submenu_page( $this->parent_slug, $this->menu_slug );
[26] Fix | Delete
}
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
public function get_page_title()
[30] Fix | Delete
{
[31] Fix | Delete
return esc_html__( 'Add New', 'ninja-forms' );
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
public function get_capability()
[35] Fix | Delete
{
[36] Fix | Delete
return apply_filters( 'ninja_forms_admin_add_new_capabilities', $this->capability );
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
public function display()
[40] Fix | Delete
{
[41] Fix | Delete
// This section intentionally left blank.
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
} // End Class NF_Admin_Settings
[45] Fix | Delete
[46] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function