Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/ninja-fo.../deprecat.../includes/admin
File: tabs.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
function ninja_forms_display_tabs(){
[1] Fix | Delete
global $ninja_forms_tabs;
[2] Fix | Delete
$current_tab = ninja_forms_get_current_tab();
[3] Fix | Delete
$current_page = esc_html( $_REQUEST['page'] );
[4] Fix | Delete
$opt = nf_get_settings();
[5] Fix | Delete
if(isset($_REQUEST['form_id'])){
[6] Fix | Delete
$form_id = absint( $_REQUEST['form_id'] );
[7] Fix | Delete
}else{
[8] Fix | Delete
$form_id = '';
[9] Fix | Delete
}
[10] Fix | Delete
if(isset($ninja_forms_tabs[$current_page]) AND is_array($ninja_forms_tabs[$current_page])){
[11] Fix | Delete
foreach($ninja_forms_tabs[$current_page] as $slug => $tab){
[12] Fix | Delete
if((isset($opt['screen_options']['tab'][$slug]['visible']) AND $opt['screen_options']['tab'][$slug]['visible'] == 1) OR !isset($opt['screen_options']['tab'][$slug]['visible'])){
[13] Fix | Delete
if($tab['add_form_id'] == 1){
[14] Fix | Delete
$link = remove_query_arg( array( 'update_message','notification-action' ) );
[15] Fix | Delete
if($form_id != ''){
[16] Fix | Delete
$link = esc_url( add_query_arg( array( 'tab' => $slug, 'form_id' => $form_id ), $link ) );
[17] Fix | Delete
}else{
[18] Fix | Delete
$link = esc_url( add_query_arg( array( 'tab' => $slug ), $link ) );
[19] Fix | Delete
}
[20] Fix | Delete
}else{
[21] Fix | Delete
$link = esc_url( remove_query_arg( array( 'form_id', 'tab', 'update_message' ) ) );
[22] Fix | Delete
$link = esc_url( add_query_arg( array( 'tab' => $slug ), $link ) );
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
if($tab['disable_no_form_id'] AND ($form_id == '' OR $form_id == 'new')){
[26] Fix | Delete
$link = '';
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
if( isset( $tab['url'] ) ){
[30] Fix | Delete
$link = $tab['url'];
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
if( isset( $tab['target'] ) ){
[34] Fix | Delete
$target = $tab['target'];
[35] Fix | Delete
}else{
[36] Fix | Delete
$target = '';
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
if($tab['show_this_tab_link']){
[40] Fix | Delete
if($current_tab == $slug){
[41] Fix | Delete
?>
[42] Fix | Delete
<span class="nav-tab nav-tab-active <?php echo $tab['active_class'];?>"><?php echo $tab['name'];?></span>
[43] Fix | Delete
<?php
[44] Fix | Delete
}else{
[45] Fix | Delete
?>
[46] Fix | Delete
<a href="<?php echo $link;?>" target="<?php echo $target;?>" class="nav-tab <?php echo $tab['inactive_class'];?>"><?php echo $tab['name'];?></a>
[47] Fix | Delete
<?php
[48] Fix | Delete
}
[49] Fix | Delete
}
[50] Fix | Delete
}
[51] Fix | Delete
}
[52] Fix | Delete
}
[53] Fix | Delete
}
[54] Fix | Delete
?>
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function