| @@ -1,5 +1,10 @@ | ||
| 1 | -<div class="tab-content" id="<?php print( isset( $section['id'] ) ? esc_html( $section['id'] ) : 'default-nav' ); ?>"> | |
| 1 | +<div class="tab-content" id="<?php | |
| 2 | +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical. | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit; | |
| 5 | +} | |
| 6 | +print( isset( $section['id'] ) ? esc_html( $section['id'] ) : 'default-nav' ); ?>"> | |
| 2 | 7 | <table class="form-table" role="presentation"> |
| 3 | 8 | <tbody> |
| 4 | 9 | <?php |
| 5 | 10 | if ( isset( $section['fields'] ) && is_array( $section['fields'] ) ) { |