| @@ -1,8 +1,16 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * End form template | |
| 4 | - */ | |
| 5 | -if ( isset( $form_id ) ): ?> | |
| 6 | - <div class="jet-form-messages-wrap" data-form-id="<?php echo $form_id; ?>"></div> | |
| 7 | -<?php endif; ?> | |
| 8 | -</form> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * End form template | |
| 4 | + */ | |
| 5 | + | |
| 6 | +// If this file is called directly, abort. | |
| 7 | +if ( ! defined( 'WPINC' ) ) { | |
| 8 | + die; | |
| 9 | +} | |
| 10 | + | |
| 11 | +if ( isset( $form_id ) ) : | |
| 12 | + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> | |
| 13 | + <div class="jet-form-builder-messages-wrap" data-form-id="<?php echo absint( $form_id ); ?>"></div> | |
| 14 | +<?php endif; ?> | |
| 15 | +</form> | |
| 16 | +<?php | |