| @@ -1,5 +1,11 @@ | ||
| 1 | 1 | <?php |
| 2 | + | |
| 3 | +// Exit if accessed directly. | |
| 4 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 5 | + exit; | |
| 6 | +} | |
| 7 | + | |
| 2 | 8 | /** |
| 3 | 9 | * The template used to display the suggested amounts field. |
| 4 | 10 | * |
| 5 | 11 | * Override this template by copying it to yourtheme/charitable/form-fields/content.php |
| @@ -13,5 +19,5 @@ | ||
| 13 | 19 | if ( ! array_key_exists( 'content', $view_args['field'] ) ) { |
| 14 | 20 | return; |
| 15 | 21 | } |
| 16 | 22 | |
| 17 | -echo $view_args['field']['content']; | |
| 23 | +echo $view_args['field']['content']; // phpcs:ignore | |